PHP 8.5.0 Alpha 4 available for testing

Voting

: max(two, six)?
(Example: nine)

The Note You're Voting On

peratik at gmail dot com
7 years ago
python get_close_matches equivalent:

function get_close_matches($str, $arr) {
$closest = 1000;
$word = false;
foreach($arr as $w) {
$po = levenshtein($str, $w);
if ($po<$closest) {
$closest = $po;
$word = $w;
}
}
return $word;
}

<< Back to user notes page

To Top