View Single Post
Old 12-03-2004, 09:42 PM   #8
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
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 files using return then you should be able to do as in this thread without order problems.
__________________
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