PHP 支持 C,C++ 和 Unix Shell 风格(Perl 风格)的注释。例如:<?php echo "This is a test"; // This is a one-line c++ style comment /* This is a multi line comment yet another line of comment */ ...
安装前,首先需要知道想用 PHP 来做什么。PHP 主要用在三个领域,分别在“PHP 能做什么”一节中进行了描述: 服务端脚本命令行脚本编写桌面应用程序在通常情况下,需要三样东西:PHP 自身、一个 web 服务器和一个 web 浏览器。可能已经有了一个 web 浏览器,并且根据操作系统的配置,也很可能已经有了一个 web 服务器(例如 Linux 和 MacOS 下的 Apache;Win...