[PHP series] PHP recommended standard PSR-1, PSR-2, psr-1psr-2
At least the code. When I first went to college, the teacher taught us to write the code strictly and properly. The code is like a person, and the work is complete. The canonicalized
Basic code SpecificationThis specification formulates the relevant standards for the basic elements of Code,To ensure a high degree of technical interoperability between shared PHP code.Keywords "must" ("must"), "must not/must not be" ("must not"), "
Basic code SpecificationThis specification develops standards for the basic elements of code to ensure a high degree of technical interoperability between shared PHP code.Keywords "must" ("must"), "must not/must not be" ("must not"), "Need"
Basic code SpecificationThis specification develops standards for the basic elements of code to ensure a high degree of technical interoperability between shared PHP code.Keywords "must" ("must"), "must not/must not be" ("must not"), "Need"
Basic code SpecificationThis specification formulates the relevant standards for the basic elements of Code,To ensure a high degree of technical interoperability between shared PHP code.Keywords "must" ("must"), "must not/must not be" ("must not"), "
Basic code SpecificationThis specification formulates the relevant standards for the basic elements of Code,To ensure a high degree of technical interoperability between shared PHP code.Keywords "must" ("must"), "must not/must not be" ("must not"), "
PSR is a series of PHP development specifications, divided into several versions, their own learning is also relatively superficial, but still want to be able to review the specification, in order to facilitate memory and follow, I put the key words
In order to facilitate the specification of their own code, reference to CodeIgniter, Laravel, PSR and other relevant specifications, to do a summary of the PHP code specification.
[TOC] # # file format
PHP code files must be encoded with UTF-8
This standard contains standard coding elements that are used to ensure interoperability of PHP shared code.The key words "must must", "must not must not", "REQUIRED required", "shall will", "shall not will not", "should should", "should not should
This standard contains standard coding elements that are used to ensure interoperability of PHP shared code.
The key words "must must", "must not must not", "REQUIRED required", "shall will", "shall not will not", "should should", "should not
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.