note 28251 added to language.variables.external

From: Date: Tue, 07 Jan 2003 11:20:28 +0000
Subject: note 28251 added to language.variables.external
Groups: php.notes 
Request: Send a blank email to php-notes+get-41780@lists.php.net to get a copy of this message
if you want obtain the variables without $HTTP_*_VARS[] for example (something requiered in the last versions of PHP, >=4.2.3), you can use this simple script: while (list ($key, $value) = each ($HTTP_GET_VARS)) { $$key = value } while (list ($key, $value) = each ($HTTP_POST_VARS)) { $$key = value } for example, if you obtain $HTTP_POST_VARS['hello'] = "hi world";, the result must be $hello = "hi world"; -- http://www.php.net/manual/en/language.variables.external.php http://master.php.net/manage/user-notes.php?action=edit+28251 http://master.php.net/manage/user-notes.php?action=delete+28251 http://master.php.net/manage/user-notes.php?action=reject+28251

« previous php.notes (#41780) next »