Menu Samaritan's Purse

ARRAY_PUSH

Push one or more elements onto the end of array

SYNTAX

array_push ( array &$array [, mixed $... ] ) : int

PARAMETERS

array

The input array.

...

The values to push onto the end of the array.

RETURN

Returns the new number of elements in the array.

EXAMPLES

ARRAY

2

...

4

INTERNAL

array_pop

array_shift

array_unshift

EXTERNAL

PHP