How does one loop through an array and then subsequently check to see if the current selected element is a key? Thanks.
E.g. for the following:
for($i=0;$i<count($arr);$i++) {
//if($arr[$i]) == key, or typeOf($arr[$i]) == key, then doSomething();
}
keyis not a datatype or anything in PHP (certainly not a keyword). It's still not clear what you want to do. What iskeyin your example?