Also, from
php.net:
return.php
PHP Code:
<?php
$var = 'PHP';
return $var;
?>
noreturn.php
PHP Code:
<?php
$var = 'PHP';
?>
testreturns.php
PHP Code:
<?php
$foo = include 'return.php';
echo $foo; // prints 'PHP'
$bar = include 'noreturn.php';
echo $bar; // prints 1
?>
So if you structure the included PHP files using
return then you should be without order problems and without seeing ones on your pages.