View Single Post
Old 12-03-2004, 10:02 PM   #15
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote