Hi, I’m using PHP OOP and created an instance of the class and stored the content inside a $_SESSION['cart']
1... I can validate, if “prid” exists in the session with this ….
How would i check for "prid" and "prflavour" Mango ?
if (isset($_SESSION['cart'][12]))
2... I need to update the quantity when both conditions "prid" and "prflavour" are met.
how do i change this $_SESSION['cart'][$_GET['prid']]-> to work with prid and prflavour
$_SESSION['cart'][$_GET['prid']]->updateQuantity(123)
sample of the $_SESSION['cart']
Array ( [13] => Item Object ( [prid:protected] => 13 [prname:protected] => Meal [prflavour:protected] => Mango
[prqty:protected] => 10 )
[12] => Item Object ( [prid:protected] => 12 [prname:protected] => Milk [prflavour:protected] => [prqty:protected] => 123 )
)