1. ClassThe class name is capitalized in the first letter of each word, such as the class name Studentcourse.2. ConstantsThe constant name is all uppercase letters, the words are separated by underscores, and the usual names are null, TRUE, FALSE,
mediawiki.org PHP Coding Conventions, mediawiki.orgphp
Http://www.mediawiki.org/wiki/Manual:Coding_conventions/PHP
Assignment as expression to look like a mistake
// No if $a = foo ()) { bar ();}
// Yes $a = foo (); if $a ) { bar ();}
To
Some errors reported by syntax conventions embedded in PHP are carefully formatted in HTML. then, the system fills in the blanks and finally solves the nested loop query issue after two posts are posted. However, when a new problem occurs, the
to understand and master a programming language, I think it is important to master its naming rules. No rules. Inadequate surrounding area, programming is the same, not only you can understand, others should also be able to understand your code, it
A framework written using PHP must have its own specifications, thinkphp and vice versa. Here are The naming conventions that should be followed as much as possible using thinkphp: class 2 files are suffixed with . class.php (This is the thinkphp
A framework written using PHP must have its own specifications, thinkphp and vice versa. Here are The naming conventions that should be followed as much as possible using thinkphp:
2 .class.php thinkphp internal use of the class library
What are the rules for naming variables in PHP, and I'm sure you all know that simple but fine-grained estimates don't know, let's take a look at the declaration of PHP variables and the introduction of variable naming rules.
Which of the following
This article introduces, PHP programming in the naming standard, including the basic concept, camel-style nomenclature, hump method, Pascal method, the need for friends, may wish to refer to the study.Camel-like nomenclature (also called Hump
As a general rule, the names of classes, functions, and variables should be able to make it easy for code readers to know what the code does, and avoid using the ambiguous nomenclature.1. Class naming
Use uppercase letters for the
PHP kernel exploration: the Zend virtual machine has learned that the execution process of a PHP file on the server side includes the following two major processes:
Hand the file to be executed by the php program. after the php program
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.