note 73141 added to function.unset
| From: | rbemrose at vgmusic dot com | Date: | Sat, 10 Feb 2007 10:18:35 +0000 |
| Subject: | note 73141 added to function.unset | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123213@lists.php.net to get a copy of this message | ||
Yes, an array is a variable, so calling unset on the array without specifying an index will destroy
the entire thing.
The difference between
unset($array)
and
$array = array();
is the return value of isset(). For the first, isset will return FALSE. For the second, isset will
return TRUE, even though it has no data.
----
Server IP: 64.71.164.2
Probable Submitter: 24.56.241.100
----
Manual Page -- http://www.php.net/manual/en/function.unset.php
Edit -- https://master.php.net/note/edit/73141
Del: integrated -- https://master.php.net/note/delete/73141/integrated
Del: useless -- https://master.php.net/note/delete/73141/useless
Del: bad code -- https://master.php.net/note/delete/73141/bad+code
Del: spam -- https://master.php.net/note/delete/73141/spam
Del: non-english -- https://master.php.net/note/delete/73141/non-english
Del: in docs -- https://master.php.net/note/delete/73141/in+docs
Del: other reasons-- https://master.php.net/note/delete/73141
Reject -- https://master.php.net/note/reject/73141
Search -- https://master.php.net/manage/user-notes.php