Saturday, April 3, 2010

Syntax


Basic PHP Syntax


The scripting block can be placed anywhere in the document. The PHP file normally contains HTML tags. Each code line in PHP must end with a semicolon ";". For instances:


(click image to view)

*Note: The file you created must have a .php extension at the end of the file name.


Comments in PHP


(click image to view)

No comments:

Post a Comment