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