Member Avatar for Oritm
Oritm

Hello there,

Im having difficulties reordering my array.
My array contains 5 objects, the objects in the array are (in this order): (0,1,2,3,4)

Now i want to change the order to (2,3,4,0,1).

I can write my own function, but is there a function that does that?

Thanks!!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.