1、标准分界符:?php ?形式; 如:?php echo HelloWorld; ? 使用该形式需要将php.ini文件中的short_open_tag设置为On,重启apache服务器后生效。 4、asp风分界符:% %形式; 使用该形式需要将php.ini文件中的asp_tags设置为On,同样重启apache服务器。 注意:
1、标准分界符:形式;
如:
echo "HelloWorld";
?>
使用该形式需要将php.ini文件中的short_open_tag设置为On,重启apache服务器后生效。
4、asp风格分界符:形式;
使用该形式需要将php.ini文件中的asp_tags设置为On,同样重启apache服务器。
注意:官方推荐使用标准分界符的形式,因为另外几种方式可能引起错误,如第二种方式可能会导致对xml文件的解析异常,第三种容易导致与页面前面的脚本(如js脚本)混淆,asp风格则是当年为了与asp强占市场而支持的一种形式。
二、基本语法
语句以分号“;”结尾;
注释方式:
//方式、/* */方式和#方式,源自于c、c++和Unix的shell语言注释方式。
标识符:只能由字母、数字和下划线组成,且只能用字母或下划线开头。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

SublimeText3 English version
Recommended: Win version, supports code prompts!

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver CS6
Visual web development tools

Atom editor mac version download
The most popular open source editor
