Re: [PHP4BETA] wanted function: phpvars
| From: | Sascha Schumann | Date: | Fri, 13 Aug 1999 12:19:39 +0000 |
| Subject: | Re: [PHP4BETA] wanted function: phpvars | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3390@lists.php.net to get a copy of this message | ||
On Thu, Aug 12, 1999 at 09:17:35AM +0200, Milan Salajka wrote:
> Hi!
>
> does exists method how to print ALL defined variables in PHP ?
> it can be very useful to have function (like phpinfo()) (eg. phpvars())
> that print out ALL defined variables at this moment... (for debugging...)
Write a recursive function which handles all variable types you
use. Then run that function on $GLOBALS
If you don't know what I mean look at
phplib/php/session.inc:freeze()
--
Regards,
Sascha Schumann
Consultant