Code contents of a function
| From: | Shawn McKenzie | Date: | Fri, 03 Jan 2003 01:17:36 +0000 |
| Subject: | Code contents of a function | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-130018@lists.php.net to get a copy of this message | ||
I have a script with some functions and within the script I want to read the
code from one of the functions into a string.
Example:
function myfunction() {
echo "something";
echo "something else";
someotherfunction();
}
I want to read:
echo "something";
echo "something else";
someotherfunction();
into a string.
Any ideas??? TIA
-Shawn