Re: Code contents of a function
| From: | Shawn McKenzie | Date: | Fri, 03 Jan 2003 01:25:18 +0000 |
| Subject: | Re: Code contents of a function | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130022@lists.php.net to get a copy of this message | ||
What??? I want to read the code from the function into a string!
"Peter Houchin" <php@vfsa.com.au> wrote in message
news:DPEPKCNEFOKBCNNANCIPAEHGDDAA.php@vfsa.com.au...
> 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
> >
> >
> >