Posts by João Alberto • 1 point
1 post
-
-4
votes1
answer26
viewsQ: Does anyone know of a function that passes the array positions?
For example, suppose I have the array [1,2,3], change to [2,3,1] and then to [3,1,2]. I’m looking for a function that together the for, can pass the array positions. Ex: for($i = 0; $i<10; $i++){…