$v) { if ($v == $_POST['item']) { unset($cart[$k]); break; } } $cart = array_values($cart); $cart = implode(',', $cart).','; setcookie('cart', $cart); unset($_POST['item']); unset($_POST['cart-minus']); header('Location: /cart.php'); } if (isset($_POST['cart-plus'])) { $cart = null !== $_COOKIE['cart'] ? $_COOKIE['cart'] : ''; $cart .= $_POST['item'].','; setcookie('cart', $cart); unset($_POST['item']); unset($_POST['cart-minus']); header('Location: /cart.php'); } $eigo = null !== $_COOKIE['lang'] && $_COOKIE['lang'] == 'en'; $cart = null !== $_COOKIE['cart'] && $_COOKIE['cart'] != 0; $styles = ['style']; ?>