note 48365 deleted from function.array-merge-recursive by googleguy
| From: | googleguy@php.net | Date: | Tue, 22 Oct 2013 10:13:42 +0000 |
| Subject: | note 48365 deleted from function.array-merge-recursive by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-196914@lists.php.net to get a copy of this message | ||
Note Submitter: fire at firepages dot com dot au
----
PHP5 note , in PHP4 you could pass an uninitialised array to array_merge_recursive which would issue
a notice but not break anything ..
while( $whatever){
$uninitialised_array = array_merge_recursive( $uninitialised_array, $t ) ;
}
in PHP5 , if you dont initialise the array the recursion never starts so $uninitialised_array =
array(); solves (good practive anyway I suppose?)