How do you shuffle a PHP array while still knowing the original index?
I have a simple array in PHP (e.g. ["a", "b", "c", [5, 10]]
).
The shuffle()
function allows you to shuffle the elements.
However I still wish know what the original index was. How can I do this?