forecah loop in php to get only keys code example Example: php foreach echo key value foreach($page as $key => $value) { echo "$key is at $value"; }