note 92249 deleted from function.array-reduce by danbrown
| From: | danbrown@php.net | Date: | Wed, 15 Jul 2009 21:01:16 +0000 |
| Subject: | note 92249 deleted from function.array-reduce by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-158353@lists.php.net to get a copy of this message | ||
Note Submitter: Jonathan
----
@hrobky
Here is a more efficient way to "array_reduce using array_merge". I ran into this same
issue, and as the number of arguments increases, the foreach method progressively loses ground.
<?php
$result = call_user_func_array('array_merge', $arr);
?>