Sunday, March 14, 2010

PHP - Syntax

PHP code is executed on the server, and the plain HTML result is sent to the browser. The following is the examples of basic syntax:


If you wanna embedded the PHP code into HTML, you must write the code inside the body of HTML codes. Try this one:


Put comments in PHP code..

In PHP, we use // to make a single-line comment or /* and */ to make a large comment block.
Try this one:

0 comments:

Post a Comment