Re: All active variables?
| From: | Stut | Date: | Tue, 01 Aug 2006 11:22:24 +0000 |
| Subject: | Re: All active variables? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-239943@lists.php.net to get a copy of this message | ||
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