Hi,
I have 2 arrays, one array holds my information of what I am creating in a session array. The other is an updated order of the session array. So basically I create the session array which holds my info but I need to update the order based on the second array.
The first array:
Array
(
[0] => Array
(
[urls] => test.mp3
[title] => test0
)
[1] => Array
(
[urls] => test1.mp3
[title] => test1
)
)
The second array is what I will use to update the above arrays order... 'element' referes to the item in the first array and 'order' refers to the new order that needs to take place.
Order Array:
Array
(
[0] => Array
(
[element] => 1
[order] => 0
)
[1] => Array
(
[element] => 0
[order] => 1
)
)
Again, using the second array I need to update the order of the first array to reflect the order noted. I really am at a loss as to how to go about this 😕 . Can someone point me in some kinda direction to get this workin?
Thanks.