Executing PHP Scripts
How the PHP engine treats a PHP script:
- scan the script from top to bottom
- interpolate
required files (cf. C's #include)
- any text not enclosed in
<?...?> is copied to output
- any PHP expression enclosed in
<?=Expr?> is evaluated,
and its string representation is copied to output
- any PHP code enclosed in
<?Statements;?> is executed,
and any output it produces is sent to output
There is additional output if the script is executed via a Web server.
|