Home > Backend Development > PHP Tutorial > PHP coding standards (1)_PHP tutorial

PHP coding standards (1)_PHP tutorial

WBOY
Release: 2016-07-13 17:20:20
Original
786 people have browsed it

1 File Structure

|
|――images
|――include
 |――parameter
 |――config
 |――function
|――index

images stores image files. Include is the file that the system wants to reference. Generally, parameter files are stored in parameter, configuration files are stored in config, and method files, such as javascript methods, are stored in function, and they are classified according to functional modules. Put the classes of each function into it

2 File name

Folder naming is generally in English, the length is generally no more than 20 characters, and the naming is in lowercase letters. Except for special circumstances, Chinese pinyin is used. Some common folder names are: images (storage graphics files), flash (storage Flash files), style (storage CSS files), scripts (storage Javascript scripts), inc (storage include files) , link (store friendly links), media (store multimedia files), etc. File names should be a combination of lowercase English letters, numbers and underscores.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/532603.htmlTechArticle1 File structure | |――images |――include |――parameter |――config |――function |――index images store image files. Include is the file that the system wants to reference. Generally...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template