Gen. partnerAlgotech

PHP function array_push()

Push one or more elements onto the end of array

|
September 11, 2019

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

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.