I've searched Google and the PHP docs but have yet to find a solution for this. E.g. supposing I want to perform a strstr() on all the keys of an array to determine for which keys are closest to what I'm searching for, such that:
for($i=0;$i<count($array);$i++) {
if(@strstr(key($array[$i]), "$search")) {
print "Found: ". key($array[$i]). "<br>";
}
}
"key($array[$i])" is a placeholder for whatever function or means required for selecting array keys as elements to perform a strstr() upon.
Any help is appreciated sincerely.