I'm building an auto-complete plugin and I need to check all words that start with a certain term, for example, setting $one
as follows will detect "list", "listener", "listening", etc.:
$one= "list%";
How do I append a wildcard (%
) to my second example to achieve the same result?
$one= $_REQUEST['term']; // lacks %