10.02.2013 Views

PHP Programming Language - Cultural View

PHP Programming Language - Cultural View

PHP Programming Language - Cultural View

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>PHP</strong> syntax and semantics 168<br />

<strong>PHP</strong> syntax and semantics<br />

The syntax of the <strong>PHP</strong> programming language is the set of rules that defines how a <strong>PHP</strong> program will be written<br />

and interpreted.<br />

Overview<br />

<strong>PHP</strong> only parses code within its delimiters. Anything outside its delimiters is sent directly to the output and not<br />

parsed by <strong>PHP</strong>. The most common delimiters are , respectively open and close delimiters. style delimiters are also always available, so these two forms are the most portable. The<br />

first form of delimiters, , in XHTML and other XML documents, creates correctly formed XML<br />

'processing instructions'. [1] Therefore, in either of these two cases, the resulting mixture of <strong>PHP</strong> and other markup is<br />

well-formed, and so probably valid, as XML and XHTML on the server before <strong>PHP</strong> processing. This may be helpful<br />

if the source code documents ever need to be processed in other ways during the life of the software.<br />

Short opening tags (

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!