Saturday, March 17, 2007

5th entry - PHP syntax

Refering to Wikipedia(2007) The PHP acts as a filter and takes input from the data that containing text and other instruction. the PHP compiler will compiles the input and creating the byte code fro processing. For example the code below:

?php echo 'Welcome to PHP scripting!'; ?

The PHP only compiles or execute the code withing the "?" and "?" bracket. Code that outside the bracket will be ignored. The result of the output from above the code will be:

"Welcome to PHP scripting!"

The statement of the code are usually ended by semicolon ";"

Reference
Wikipedia (3rd April 2007),"PHP", http://en.wikipedia.org/wiki/PHP