hi
i got this code while googling on net
can someone tell me what does "&" sign before $each_item signifiesCode:foreach ($_SESSION["cart_array"] as &$each_item) { if ($each_item['item_id'] == $pid) { $each_item['quantity'] += 1; $wasFound = true; break; }
what is the use of "&" sign before $each_item in foreach loop
vineet



Reply With Quote
Bookmarks