php - syntax

php - syntax
Before we talk about PHP's syntax, let us first define what syntax is referring to.


Syntax - The rules that must be followed to write properly structured code.
PHP's syntax and semantics are similar to most other programming languages (C, Java, Perl) with the addition that all PHP code is contained with a tag, of sorts. All PHP code must be contained within the following...

PHP Code:
?>

or the shorthand PHP tag that requires shorthand support to be enabled
on your server...

?>
If you are writing PHP scripts and plan on distributing them, we suggest that you use the standard form (which includes the ?php) rather than the shorthand form. This will ensure that your scripts will work, even when running on other servers with different settings.

Currently have 0 ulasan:


Leave a Reply