RE: [PHP] Code contents of a function

From: Date: Fri, 03 Jan 2003 01:34:20 +0000
Subject: RE: [PHP] Code contents of a function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-130019@lists.php.net to get a copy of this message
so put it in a if or switch statement eg if ($var){ myfunction(); } else { sumotherfunction(); } etc > -----Original Message----- > From: Shawn McKenzie [mailto:nospam@mckenzies.net] > Sent: Friday, 3 January 2003 12:18 PM > To: php-general@lists.php.net > Subject: [PHP] Code contents of a function > > > 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 > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.general (#130019) next »