Agregar elemento a esta matriz

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