On this page
HTTP & JSON
jsonArrayPop
$jsonArrayPop[]
Removes and returns the last item from a JSON array.
Syntax
$jsonArrayPop[key]
$jsonArrayPop removes the last element from a JSON array and returns it — equivalent to JavaScript’s Array.pop(). This is useful for stack-based processing (LIFO — Last In, First Out). Popping from an empty array returns an empty string.