Table of Contents
PHP的语言规范:
Home php教程 php手册 PHP的语言规范 - 尼农小道

PHP的语言规范 - 尼农小道

May 20, 2016 am 11:54 AM

PHP的语言规范:

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

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

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

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

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

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

示例:

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

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

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)