I created an input text, where I write something that I want to search in an array.
I already use stristr() and stripos() but whit this I get only the same words, example:
<?php
$value[0]= 'animals';
//other array values
$arrayResp = [];
foreach($valuefounded as $value)
{
if(stristr($value, "animals") !== FALSE)
{
$arrayResp[]= $value;
}
}
how can I get the same result, if I type grammatical mistake like "animls"