This function returns an multidimensional array containing a list of all defined variables, be them environment, server or user-defined variables, within the scope that get_defined_vars() is called. As of PHP 5, the $GLOBALS variable is included in the results of the array returned.
<?php |
See also isset(), get_defined_functions() and get_defined_constants().