function getCartQty() { if(empty($_SESSION['cart'])) return 0; $qty = array(); foreach($_SESSION["cart"] as $item){ $qty[] = $item['quantity']; } return array_sum($quantity); }
$qty
$quantity
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)