Over the years, I have been engaged in PHP and C-related development in Linux and have brought many projects and teams. The following PHP coding specifications based on my experience can be used as examples and references for everyone, select and
PHP coding standards are becoming more and more important in the compilation process of PHP. today, I saw articles written by my predecessors on the Internet. Original article address: Coding Specification for PHP development
In the compilation
FIG is developing a PHP-related specification, abbreviated as "SRS. At present, there are four code specifications, which have recently been translated into the Chinese version. Suggested PHP students are concerned about the document repository
Fig organization in the development of PHP-related specifications, referred to as PSR. There are now 4 code specifications, the recent time to translate into the Chinese version. Suggest doing PHP students are concerned about.Document Warehouse
Original: 8705313 Event-driven PHP event-driven programming--------------------------------------------------------------------------PHP: (http ://hi.baidu.com/yiqing95)*Event-driven is very common in desktop applications, such as when you click a
1. General
Try to unify the IDE such as the Phpstream configuration file (Settings→code Style→php→set from ... →predefined STYLE→PSR1/PSR2) See standard operation
Indent must use 4 spaces instead of the TAB key
File name StudlyCaps
1. Purpose of preparation???? In order to better improve the efficiency of the technical department, to ensure the effectiveness and rationality of development, and to maximize the readability of the program code and reusable, specify this
Copy CodeThe code is as follows:
/*
* @im//Picture resources that need to be scaled
* @filetype//production of thumbnail file type
* @dstimW//Zoom the width of the picture
* @dstimH//height of the picture to zoom
* @thumbname//thumbnail file
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.