Calling function with the "include file name"
Posted: Wed Dec 03, 2003 8:37 am
Hello Alll,
I seem to remember having read somewhere that there is a facility for calling a function with additional information beforehand which shows which include file the function is held in.
Example:
file xyz.php holds function getHello();
Main file
<?php
include("xyz");
echo(<method>getHello());
?>
Has anyone come across this ? Are they able replace the <method> text ?
I realise the other method could be echo(getHello()); // function in xyz.php
Thanks
Mark
I seem to remember having read somewhere that there is a facility for calling a function with additional information beforehand which shows which include file the function is held in.
Example:
file xyz.php holds function getHello();
Main file
<?php
include("xyz");
echo(<method>getHello());
?>
Has anyone come across this ? Are they able replace the <method> text ?
I realise the other method could be echo(getHello()); // function in xyz.php
Thanks
Mark