How can you search a partial string when typing (not to use MySQL) like the LIKE function in MySQL but using PHP when searching a string, e.g.
strstr() / stristr() (the latter being case-insensitive)
if(strstr($string,$find)!==false){ //true }