SyntaxFix
Write A Post
Hire A Developer
Questions
If i understand correctly, can't you simply use:
foreach($arr as $key=>$value) { echo $key; }
See PHP manual