array_pop()
function array_pop(array $array): mixed
Pops the element off the end of array.
Parameters:
$array(array), passed by reference
Returns: mixed
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/array/array_pop.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how array_pop is implemented in the compiler, see the internals page.