RE: [PHP] All active variables?
| From: | Peter Lauri | Date: | Tue, 01 Aug 2006 06:53:00 +0000 |
| Subject: | RE: [PHP] All active variables? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239944@lists.php.net to get a copy of this message | ||
Great stuff, I probably just searched the wrong words.
-----Original Message-----
From: Stut [mailto:stuttle@gmail.com]
Sent: Tuesday, August 01, 2006 6:22 PM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP] All active variables?
Peter Lauri wrote:
> Is it possible to print out all variables that are active within a script
> without doing it manually? This is what I would like to do:
>
> $a = 12;
> $b = 'Peter';
> $c = 'Lauri';
>
> echo '<pre>';
> print_r( get_all_variables() );
> echo '</pre>';
30 seconds of searching the PHP site later...
http://php.net/get_defined_vars
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php