In Custom Scripting, I want to get the key of the last element in an array.
The sgapiArray_Pop method only returns the final value, but I want the key/value pair.
Ideally I would like to use PHP’s array_slice method, like in http://stackoverflow.com/questions/6933403/array-pop-with-key.
Can this method be made available or is there another way I can access this value? My keys are not numeric, nor is the order known previously, so I cannot use sgapiCount to infer the value.
Thanks for any tips!