Forum und email

quotemeta

(PHP 4, PHP 5)

quotemeta — Quote meta characters

說明

string quotemeta ( string $str )

Returns a version of str with a backslash character (\) before every character that is among these:

. \ + * ? [ ^ ] ( $ )

參數

str

The input string.

Return值

Returns the string with meta characters quoted.

註釋

Note: 本函式可安全用於二進位對象。