note 52407 deleted from function.array-merge by nlopess
| From: | nlopess@php.net | Date: | Fri, 29 Apr 2005 17:50:57 +0000 |
| Subject: | note 52407 deleted from function.array-merge by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-88766@lists.php.net to get a copy of this message | ||
Note Submitter: bgates at microsoft dot com
----
Uh, yeah, probably obvious to some,
but doing an array_merge() that includes any
unset/undefined/null/nonexistent variable/array
gives an unset/undef/null/nonexist result.
$a=array("1", "2");
unset($q);
$z=array_merge($a, $q);
print_r($z);
echo $z;
results in nothing.
It probably makes technical sense at some low level, but it is humanly nonsensical: you take nothing
and add it something and you get nothing??