PHP is a programming language. This means that it can evaluate data and output various responses based upon a set of instructions written by the programmer. Below are some basic rules to keep in mind when you work with PHP:
Basically:
The above is all valid!
- Every declaration in PHP begins with :
<? php
and ends with:
? >
- PHP is case sensitive. So be careful if you use camelCase to distinguish between words in variables.
- PHP code can be written before the <html> tag in a webpage.
- PHP code WILL NOT appear in an html document if XHTML is written in between <?php and ?> tags.
- The only way to add XHTML to PHP output is to use echo or print
Basically:
The above is all valid!
No comments:
Post a Comment