I have array data like with multiple sessions
$_SESSION['cart'][]['id'] = $_POST['id'];
$_SESSION['cart'][]['qty'] = $_POST['qty'];
$_SESSION['cart'][]['size'] = $_POST['size'];
Now I want to get the data like Array ( [id] => 4 [qty] => 1 [size] => 1)
in every time I fetch the data with any loop.