note 93635 deleted from function.array-push by peehaa
| From: | peehaa@php.net | Date: | Tue, 21 Mar 2017 08:38:11 +0000 |
| Subject: | note 93635 deleted from function.array-push by peehaa | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208918@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
If you need to push the elements of an array onto the end of another, simply use array_splice():
array_splice($array, count($array), 0, $otherArray);