loop throught and change a specific vlaue of nested array and return the strucuture 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";
}
?>