Non mi pare esista, ma magari mi sbaglio. Se le stringhe sono parzialmente identiche all'inizio puoi fare un controllo carattere per carattere cosė:
codice:function strmatch( $str1, $str2 ){ $tmp = ''; $end = min(strlen($str1),strlen($str2)); if ($end==0) return false; for ($i=0; $i<$end; $i++) if ($str1[$i]==$str2[$i]) $tmp.=$str1[$i]; else return $tmp; return $tmp; }

Rispondi quotando