note 8719 modified in unset by ronabop
| From: | ronabop@php.net | Date: | Fri, 29 Sep 2000 15:23:43 +0000 |
| Subject: | note 8719 modified in unset by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5670@lists.php.net to get a copy of this message | ||
Using unset in a function destroys global flag on variable:
<?
function tst () {
global $tst;
unset $tst;
$tst = 1;
}
print $tst;
?>
http://www.php.net/manual/function.unset.php