PHP function array_push()

Availability in PHP 4.0

Push one or more elements onto the end of array

Parameters

Parameter Data type Default value Note
$array array not The input array.
$var mixed not The pushed value.
$_ mixed null

Return values

int

the new number of elements in the array.

Other resources

Official array-push documentation

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.