Shopping cart suggestions
<p>I have a shopping cart and items are added to a session as follows. </p>

<pre><code>array_push($_SESSION['cart'],sanitize($id));
</code></pre>

<p>This is fine for single options that have no sub-options. But if you had and order like, Espresso with milk and an English muffin it would look a bit like this.</p>

<pre><code> $_SESSION['0'] is 'Espresso'
 $_SESSION['1'] is 'Milk'
 $_SESSION['2'] is 'English Muffin'
</code></pre>

<p>or a deli menu</p>

<pre><code> $_SESSION['0'] is 'sandwich'
 $_SESSION['1'] is 'ham'
 $_SESSION['2'] is 'cheese'
 $_SESSION['3'] is 'tomato'
 $_SESSION['4'] is 'Coke'
</code></pre>

<p>and then the user wanted to delete the <code>sandwich</code> and keep the <code>coke</code> how would I delete all of the sandwich and it's options <code>sandwich</code>, <code>ham</code> , <code>cheese</code>, <code>tomato</code> when the user choses to delete sandwich? keeping in mind the sandwich options could vary.</p>
