note 51604 deleted from function.array-merge-recursive by felipe
| From: | felipe@php.net | Date: | Tue, 11 Dec 2007 10:06:14 +0000 |
| Subject: | note 51604 deleted from function.array-merge-recursive by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-133355@lists.php.net to get a copy of this message | ||
Note Submitter: mikeo
----
Similarly, you can cast variables to type array. This is especially useful if you're passing
arrays by reference.
function addHeader(&$lArray, $description = null)
{
...
$lArray = array_merge_recursive((array)$lArray, $tmpArray);
...
}