Tutorials
PHP Basics
Working with PHP Code


Just as in any other kind of programming or scripting it is important to document what you do. A single-line comment is marked at the beginning with /* and at the end with */.

You can comment your code using C++ type comments. The following shows the syntax for inline comments (a comment on a single line), and block comments (comments placed over several lines).
// This is an inline comment
/*
    This is a block comment
    placed over two or more
    lines
*/
PHP
PHP Files
PHP Operators
PHP Switch
PHP Arrays
PHP if..elsif..else
PHP Loop
PHP Basics
PHP Variables
PHP Output (echo/print)