If for Ex. user inputs this in a single textfield:
auto moto cars service rooler
What is the code in PHP to exclude (for Ex. rooler) some word.
Thanks Ahead!
How to exclude some words from the input for searching
Moderator: General Moderators
Code: Select all
$exclude = array(
'foo', 'bar', 'flibble'
);
$search = str_replace($exclude, '', $search);