Dodaj element do tej tablicy

$b=array("product"=>"$product","quantity"=>$quantity);
array_push($_SESSION['cart'],$b); // Items added to cart
Gifted Goldfinch