← All docs

array_pop()

Pops the element off the end of array.

array_pop()

function array_pop(array $array): mixed

Pops the element off the end of array.

Parameters:

  • $array (array), passed by reference

Returns: mixed

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how array_pop is implemented in the compiler, see the internals page.