Menu
I’ve been using a session to store items for a shopping cart, making a “string” of ID’s all separated by a “/’ thats saved in my session.
When I add a item, I explode it into an array by the /. Then do an in_array check and array_push. Worked well.
I’m now wanting to keep a count as well. Maybe ID{Count}. for example 33{43]/61{1}/
This doesn’t work because splitting into an array doesn’t leave me with a unique array value as the count will vary.
Ideas please.
The issue is