SyntaxFix
Write A Post
Hire A Developer
Questions
If you use array_keys(), PHP will give you an array filled with just the keys:
array_keys()
$keys = array_keys($arr); foreach($keys as $key) { echo($key); }
Alternatively, you can do this:
foreach($arr as $key => $value) { echo($key); }