o anche ...
$ricerca = array(':', '*', '?', '"', '<', '>');
if(preg_match('/\\'.implode('|\\', $ricerca).'/', $stringa))
print "è stato trovato un carattere pericoloso";
![]()
o anche ...
$ricerca = array(':', '*', '?', '"', '<', '>');
if(preg_match('/\\'.implode('|\\', $ricerca).'/', $stringa))
print "è stato trovato un carattere pericoloso";
![]()