note 40539 added to function.unset

From: Date: Sun, 07 Mar 2004 02:16:52 +0000
Subject: note 40539 added to function.unset
Groups: php.notes 
Request: Send a blank email to php-notes+get-66374@lists.php.net to get a copy of this message
Only This works with register_globals being 'ON'. unset( $_SESSION['variable'] ); The above will not work with register_globals turned on (will only work outside of a function). $variable = $_SESSION['variable']; unset( $_SESSION['variable'], $variable ); The above will work with register_globals on & inside a function ---- Manual Page -- http://www.php.net/manual/en/function.unset.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+40539 Delete -- http://master.php.net/manage/user-notes.php?action=delete+40539&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+40539&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#66374) next »