Home Е-Mail
Home | E-Mail
Addition

Advertising

Syntax

PHP only assorts the code within its separators. Something out of its separators dispatch directly in production and it is not disassembled PHP. The most common separators <? php and?> which are the open and close separators accordingly. <script language = "php"> and </script> separators also are accessible. Short tags (<? Or <? = and?>) also are usually used, but as tags of STYLE of the VIPER (<% or <% = and %>), they are less portable, as they can be invalids in configuration PHP. Therefore usage of short tags and tags of STYLE of the VIPER discourages.


The purpose of these separators consists in separating code PHP from the code non-PHP, switching on HTML. All out of separators is ignored by the analyzer and passes how is made.





Variables preset with the dollar character, and the type should not be defined in advance. Unlike function and class names, variable names go match case. Both, double specified ("") and sequences heredoc, allow ability to switch on value of a variable in sequence. For PHP there are three types of syntax of the remark:/* */is for block remarks, and//just as # are used for operating remarks. The echo statement - one of several services who PHP provides to the synthesised text (for example, to a web-browser).





In terms of keywords and language syntax PHP it is similar to the majority of high-level languages which follow syntax of style C. Condition If Keywords, for and while closed loops, and function returnings are similar in syntax to languages, such as C, C ++, Java and Perl.

paint perfect photo collage
© 2008 by Stas_oN. All Rights Reserved