skip to Main Content

Uncaught Error: Call to undefined function each() – PHP

I'm wondering if you guys can give me an idea about how to replace this each function: while(list($key,$val) = each($_SESSION['cart'][$i])) { if ($key=="product_name"){ $product_name=$val; }else if($key=="units"){ $units=$val; }else if($key=="packing_size"){ $packing_size=$val; }else if($key=="grade"){ $grade=$val; }else if($key=="length"){ $length=$val; }else if($key=="quantity"){ $quantity=$val; }…

VIEW QUESTION
Back To Top
Search