hi,
my data is stored like this...
if ( !isset( $_SESSION["cart"] ) ) {
$_SESSION["cart"] = array();
}if(empty($qty) ) {
$qty = 1;
}
$_SESSION["cart"][$id] = $qty;
now how can i make this work to check if a key/value exists in the array?
if(!isset($_SESSION['cart'])){