Skip to content

Function: array_push() ​

array_push<T>(array, ...values): T[]

Defined in: src/php-arrays.ts:176

Push one or more elements onto the end of array.

Type Parameters ​

T ​

T

Parameters ​

array ​

T[]

The source array

values ​

...T[]

The values to push

Returns ​

T[]

The modified array (copy)

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.