Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

display elements of the array

$max=sizeof($_SESSION['cart']);
for($i=0; $i<$max; $i++) { 

while (list ($key, $val) = each ($_SESSION['cart'][$i])) { 
echo "$key -> $val ,"; 
} // inner array while loop
echo "<br>";
} // outer array for loop
Source by www.plus2net.com #
 
PREVIOUS NEXT
Tagged: #display #elements #array
ADD COMMENT
Topic
Name
3+2 =