note 32565 deleted from function.isset by alindeman
| From: | alindeman@php.net | Date: | Sat, 31 May 2003 14:07:51 +0000 |
| Subject: | note 32565 deleted from function.isset by alindeman | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49487@lists.php.net to get a copy of this message | ||
Note Submitter: Huib@bestia.com
----
Example of isset for vars if you are working with register_globals = Off
function isVar($variable)
{
if(isset($_SERVER["REMOTE_ADDR"]))
{
$varName = $variable;
global $$varName;
if(isset($_REQUEST["$variable"]))
{
$varValue = $_REQUEST["$variable"];
}
else
{
$varValue = false;
}
$$varName = $varValue;
}
}