PHP Comments
时间:2007-09-02 来源:wflai
PHP supports C, C++, and shell script style comments.
This is a C-style, multiline comment that might appear at the start of our PHP script
/* Author: Bob Smith
Last modified: April 10
This script processes the customer orders.
*/
Multiline comments should begin with a /* and end with */. As in C, multiline comments cannot be nested.
You can also use single line comments, either in the C++ style
echo "Order processed."; // Start printing order
or in the shell script style:
echo "Order processed."; # Start printing order
With both of these styles, everything after the comment symbol (# or //) is a comment until we reach the end of the line or the ending PHP tag, whichever comes first.
相关阅读 更多 +
排行榜 更多 +