echo key value php code example Example: php foreach echo key value Click to copyforeach($page as $key => $value) { echo "$key is at $value"; }