/*
 * getSearchString()
 * cleanSearchString()
 * 
 * use_where: Use WHERE instead AND to begin SQL conditional
 * and: Find all words (AND) in search field (default any words (OR)
 * remove_common_words: Remove common words from search string
 * remove_accents: Replace accent marks with normal letters from search string
 * remove_dashes: Replace dashes with spaces from search string
 * remove_symbols: Remove any char except numbers and letters
 * 
 * 
 */

//Usage example:
$value = 'pink shirt';
$fields =["field1","field2","field3"];

$options['use_where'] = false;
$options['and'] = false;
$options['remove_common_words'] = true;
$options['remove_accents'] = true;
$options['remove_dashes'] = true;
$options['remove_symbols'] = true;

$sql_filter = $wv->getSearchString($value,$fields,$options);