note 73141 deleted from function.unset by philip
| From: | philip@php.net | Date: | Sat, 10 Feb 2007 20:54:42 +0000 |
| Subject: | note 73141 deleted from function.unset by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-123224@lists.php.net to get a copy of this message | ||
Note Submitter: rbemrose at vgmusic dot com
----
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.