foreach $key value php code example
Example 1: php foreach echo key value
foreach($page as $key => $value) {
echo "$key is at $value";
}
Example 2: php foreach dict get key
foreach (iterable_expression as $key => $value)
statement
foreach($page as $key => $value) {
echo "$key is at $value";
}
foreach (iterable_expression as $key => $value)
statement