How would I go about registering an array array with Session variables. The problem is that I need to add items to the inner array, when the user adds a item to the cart.
eg.
//This obviously will over write the inner array when a item is added
$_SESSION['mycart'] = array(array("cloting" => "shirt", "size" = > "large", "print" => "snowboarding"));
or I probably need some sort of pointer that I need to seed with microtime maybe , not to sure
//This does not work aswell
(String) $var = sprintf("%04.0f", time());
$_SESSION['mycart'] = array($_SESSION['item'][$var] = array("cloting" => "shirt", "size" = > "large", "print" => "snowboarding"));
Any Ideas?
Thanks
J