- strpos: documentation ( source)
- str_replace: documentation ( source)
<?php
$badthings = [ "`", "<", ">", "()"];
$input="Ciao< come va?'";
foreach ($badthings as $key => $badthing) {
if((int)strpos($input, $badthing) > -1){
str_replace($badthing, "", $input);
}
}
echo $input;
?>