MivaScript Builtin Function, Miva Merchant 9+
miva_array_pop_ref( array var, element var )
<mvt:assign name="g.return_value" value="miva_array_pop_ref( array var, element var )" />
Makes "element" a reference to the last element of "array", then removes it from the array.
array var
the array where the record will be remove.
element var