note 55493 added to function.unset
| From: | tom at diacope dot com | Date: | Thu, 04 Aug 2005 22:51:00 +0000 |
| Subject: | note 55493 added to function.unset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-93102@lists.php.net to get a copy of this message | ||
when working with $_SESSION or any other array like that and you want to delete part of the session
array it's always worked for me to do:
$_SESSION['data'] = NULL;
unset($_SESSION['data']);
----
Manual Page -- http://www.php.net/manual/en/function.unset.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55493
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55493&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55493&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55493&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55493&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55493&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55493&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55493&report=yes
Search -- http://master.php.net/manage/user-notes.php