case "remove":
if(!empty($_SESSION["cart_item"]))
{
foreach($_SESSION["cart_item"] as $k => $v)
{
if($_GET["id"] == $k)
{
unset($_SESSION["cart_item"][$k]);
}
if(empty($_SESSION["cart_item"]))
{
unset($_SESSION["cart_item"]);
}
}
header("location:cart.php");
}
break;
i m tring to delet item from session array for a shoping cart my function work ehrn i add singel value in cart but when i added multipal value my function stop working
my code is