How can I return multiple similar matches with levenshtein in PHP? For example if I have this code:
$input = "Hello what is your name. My namer is Jack.";
$output = "nam";
echo levenshtein($input, $output);
It must not only output name
, but name, namer
.
How can I do that?