You can create
function my_require_once ($name)
{
require_once $name;
}
Other guys are right, this is not a function. It works outside the mode of the PHP code you are writing. The contents of the file are placed in the global namespace, even if it is called inside a function, as described above.
I use this, for example, to do something like
function my_log ($message, $extra_data = null)
{
global $php_library;
require_once "$php_library/log.php";
my_log_fancy_stuff ($message, $extra_data);
}