search
Homephp教程php手册PHP的语言规范,PHP语言规范

PHP的语言规范,PHP语言规范

PHP的语言规范:

1、php中的变量名区分大小写,但是函数名,类名,方法名,不区分大小写,但建议区分大小写

2、php代码必须书写在(php标签),开启标记(

3、php代码每一行以分号结束,最后一行可以省略分号。

4、如果一个Php文件是由纯 php代码组成,那么php结束标识,可以省略,建议省略,如果省略,最后一行必须加分号

5、php文件名不能包含中文,路径中也不能包含中文,

6、Php文件的访问必须能过服务器(通过域名)

示例:

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

Atom editor mac version download

Atom editor mac version download

The most popular open source editor