A return Statement from a require d File Does Not WorkWhen you require d a file in PHP 3, you could have require return a value by placing a return statement in the global scope of the required file. If you want to have this functionality with PHP 4, you should use the include statement. Valid in PHP 3<?php $ret = require 'somefile.php'; ?> Valid in PHP 4<?php $ret = include 'somefile.php'; ?> |