$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 !== getcookie('cart') ? getcookie('cart') : ''; $cart .= $_POST['item'].','; setcookie('cart', $cart); unset($_POST['item']); unset($_POST['cart-minus']); header('Location: /cart.php'); } $eigo = null !== getcookie('lang') && getcookie('lang') == 'en'; $cart = null !== getcookie('cart') && getcookie('cart') != 0; $styles = ['style']; ?>