note 12436 deleted from function.get-defined-vars by sniper

From: Date: Sat, 23 Aug 2003 00:08:30 +0000
Subject: note 12436 deleted from function.get-defined-vars by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54899@lists.php.net to get a copy of this message
Note Submitter: yogaki@hotmail.com ---- Get_defiend_var() only can access variables in it scope. (I think which is good.) Therefore, following code does not work as you might be expected. function print_defined_vars() { print("\n<pre>\n"); print_r(get_defined_vars()); print("</pre>"); } print_defined_vars(); // prints "array()"

« previous php.notes (#54899) next »