if(preg_match(\'/[^a-z\\-0-9]/i\', $value)) { echo \"\"; }
how
Assuming you are talking about the regex, you escape both with a slash \.
\
/[^a-z\.\-0-9]/i