quotemeta

 string quotemeta ( string $str ) 

説明

Returns a version of str with a backslash character (\) before every character that is among these: . \ + * ? [ ^ ] ( $ )

戻り値

Returns the string with meta characters quoted, or FALSE if an empty string is given as str.