< >

simulary_text_zwei_worte_vergleichern.php


Quell Code


<?php   
$torhueter = array('Kahn','Lehmann', 'Köpke','Immel', 'Schumacher','Maier','Hildebrand','Enke');
$kurz = -1;
$input ='kahnarschmeiser';

foreach ($torhueter as $goalie) {
similar_text($input, $goalie, $percent);
$percent = round($percent);
// Treffer???
if ($percent == 100) {
$treffer = $goalie;
$kurz = 0;
echo 'Volltreffer gefunden';
break;
}
if ($percent >= $kurz || $kurz < 0) {
$treffer = $goalie;
$kurz = $percent;
}
echo $goalie.'-'.$percent.'% Gleich<br>';
}
?>

Add Comment

* Required information
1000
Powered by Commentics

Comments (1)

Gravatar
Admin
Sascha65says...

Die Canvas Balken Uhr ist ja mal Fett