Tambahkan elemen ke array ini

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