$_SESSION['cart']=array_values($_SESSION['cart']);

if(isset($_SESSION['cart'])){
$_SESSION['cart']=array_values($_SESSION['cart']);
}