Gen. partnerAlgotech

PHP function array_shift()

Shift an element off the beginning of array

|
September 11, 2019

Availability in PHP 4.0

Shift an element off the beginning of array

Parameters

Parameter Data type Default value Note
$array array not The input array.

Return values

mixed

the shifted value, or &null; if array is empty or is not an array.

Additional resources

Official array-shift 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.