Name
array_push
Synopsis
int array_push(array &array
, mixedvalue1
[, ... mixedvalueN
])
Adds the given values to the end of the array specified in the
first argument and returns the new size of the array. Performs the
same function as calling $array[] =
$value
for each of the values in the list.
Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.