Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $user_query_string = trim($_GET['search']);
- //TODO $user_query_string = preg_replace() per rimuovere più spazi con singolo spazio
- $query_string = str_replace(
- array('+', '-'),
- array('&', '&!'),
- $useR_query_string
- );
- //è stato usato almeno un operatore booleano ?
- if ($user_query_string === $query_string) {
- $query_string = str_replace(' ', '', $query_string);
- } else {
- $query_string = str_replace(' ', '|');
- }
- //use $query_string
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement