note 13275 deleted from language.variables.scope by jimw
| From: | jimw@php.net | Date: | Sat, 08 Dec 2001 21:44:58 +0000 |
| Subject: | note 13275 deleted from language.variables.scope by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22229@lists.php.net to get a copy of this message | ||
There's a LOT of junk in the $GLOBALS array at all times. This is my favorite debugging tool,
which can be used to check out the contents of the array.
<?
echo '<pre>';
print_r($GLOBALS);
echo '</pre>';
?>
It's great because it lets you see the content (carriage returns and all) of any string or
array from the browser window. I used it to creat a function, "show($array)".
Check it out I think it may surprise you.
--Bruno
-- for REAL power develop using MacOS, BBEdit, and PHP. The "Holy Trinity"!