Re: [PHP4BETA] wanted function: phpvars
| From: | Erlend Schei | Date: | Thu, 12 Aug 1999 08:15:21 +0000 |
| Subject: | Re: [PHP4BETA] wanted function: phpvars | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-3362@lists.php.net to get a copy of this message | ||
| 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...)
I'm not sure if this is what you want, but this lists all the global
variables:
while (list($key,$verdi) = each($GLOBALS)) {
echo $key . ": " . $value . "<BR>";
}
(Has nothing to do with php4 specifically, though.)
Erlend :)