note 111822 deleted from function.array-push by aharvey
| From: | aharvey@php.net | Date: | Thu, 04 Apr 2013 03:37:53 +0000 |
| Subject: | note 111822 deleted from function.array-push by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-194324@lists.php.net to get a copy of this message | ||
Note Submitter: eicto at example dot com
----
to push one array to tail of another:
function array_push_array(&$arr1,&$arr2) {
array_unshift($arr2,"");
$arr2[0]=&$arr1;
call_user_func_array("array_push",$arr2);
array_shift($arr1);
}