note 45854 added to function.extract
| From: | Daniellehr | Date: | Tue, 21 Sep 2004 18:22:46 +0000 |
| Subject: | note 45854 added to function.extract | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-77119@lists.php.net to get a copy of this message | ||
If register_globals is turned "Off" then you can use "extract" to use the
variables from the adressbar without register_globals:
<?php
extract($_GET);
?>
And now all your $_GET-Variables are in a normal variable.
E.g.: $_GET['test'] will be $test...
Have fun, Daniel Lehr
----
Manual Page -- http://www.php.net/manual/en/function.extract.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+45854
Delete -- http://master.php.net/manage/user-notes.php?action=delete+45854&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+45854&report=yes
Search -- http://master.php.net/manage/user-notes.php