note 80237 deleted from language.variables by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 15:58:29 +0000 |
| Subject: | note 80237 deleted from language.variables by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142146@lists.php.net to get a copy of this message | ||
Note Submitter: cgorbit
----
<?php
function var_name(&$var, $scope=0)
{
$old = $var;
if (($key = array_search($var = 'unique'.rand().'value', !$scope ? $GLOBALS
: $scope)) && ($var = $old || true)) return $key;
}
?>
Because $var may casts to false