loop through values of hash php
snippet in php

loop through values of hash php

user7152

foreach ($array as $key => $val) {
    print "$key = $val\n";
}

loop through values of hash php

user8002

<?php
    while (list($var, $val) = each($array)) {
        print "$var is $val\n";
    }
?>