Functions Php



Acquiring a Return Value with include()



$addResult = include("another.php");
print "The include file returned $addResult";
?>



//An Include File That Returns a Value
//another.php
  $retval = ( 4 + 4 );
 return $retval;
 ?>