Menu
My PHP Program needs to be able to store a bunch of “tickets” in temporary memory. I need the user to be able to add and remove from these tickets, kind of like a shopping basket.
For example, a user might choose:
A Child, return, ticket.
They might then choose
An Adult, single, ticket.
Then an other Child, return.
I want the Child return to be listed once, as x2 and the Adult single to be listed.
I think I need to use a 2D array but I dont know how it needs to be coded.
Does anyone understand well enough to help me?