| TUtorial PHP - Basic PHP Syntax |
| Article Index |
|---|
| TUtorial PHP - Basic PHP Syntax |
| Page 2 |
NOTEAlthough <?php and ?> are generally used, the following are also valid code-block separators:
Note that some of these code block separators function only when the associated php.ini configuration directive is enabled. Unless there is a specific reason not to, using the default <?php and ?> tags is strongly recommended. | ||||||||||
Although it's PHP, the preceding script does nothing that couldn't already be done with standard HTML. To do anything worthwhile, you'll need to learn how to use PHP variables.
In PHP, variables always start with the $ symbol followed by any combination of characters, provided that the first character following the $ symbol is a valid letter or underscore. Valid letters include uppercase and lowercase az as well as characters whose ASCII-value is between 127 and 255 (non-U.S. letters). In PHP, variables can be defined either by assigning them a value or by using the var statement.
| Users' Comments (0) |
|
No comment posted









