I'm struggling trying to sort an array via the normal functions, i'm sure this needs a custom comparison function but none the less will chuck this out there.
I have an array with 5 elements inside it. I would like the array to sort itself like so, arsort came close but not quite:
4,0,1,2,3
Just to clarify, the position of the array like: $array[0];
I haven't actually looked at array comparison functions before, so a push in the right direction would be most helpful to solve this!
Thanks,
Adam