0) { foreach($array as $key => $temp) { if(substr($key,0,$c) == $string) { return str_replace($string,'',$key); break; } } } return false; }