array_push

PHP 4, PHP 5, PHP 7, PHP 8
array_push - Push one or more elements onto the end of array

Example #1 array_push example

Result: Array ( [0] => orange [1] => banana [2] => apple [3] => raspberry )
PHP Version:


Example #2 of array_push

PHP Version:


Function array_push:

Arrays Functions

Most used PHP functions