I have a session variable which looks like this when printed:
Array
(
[cart_4] => 1
[cart_8] => 1
[cart_9] => 2
[cart_18] => 1
)
The thing is, i did not add stuff to it in that order, but because of the keys it always has that order. So is it possible to keep the items inside the session array the way they were added, not like this?
In this particular example, I added cart_8
last, and as you can see it is second in the list.