note 74887 deleted from tutorial.oldcode by betz
| From: | betz@php.net | Date: | Fri, 21 Mar 2008 17:11:29 +0000 |
| Subject: | note 74887 deleted from tutorial.oldcode by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-137286@lists.php.net to get a copy of this message | ||
Note Submitter: dreamer
----
When in your server the PHP directive register_globals is off, you can use function extract() to
quickly create the short name for your variables. For example...
<?php
extract($_GET);
echo $id;
?>
But remember, this method is not out of danger, just like register_globals = on.