loop through and save to array in php code example
Example 1: loop through values of hash php
foreach ($array as $key => $val) {
print "$key = $val\n";
}
Example 2: loop through values of hash php
<?php
while (list($var, $val) = each($array)) {
print "$var is $val\n";
}
?>