PHP quotemeta function

Like this blog? Consider exploring one of our sponsored banner ads...

quotemeta

(PHP 3, PHP 4, PHP 5)

quotemeta — Quote meta charactersDescriptionstring quotemeta ( string str )

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

Note: This function is
binary-safe.

See also addslashes(),
addcslashes(),
htmlentities(),
htmlspecialchars(),
nl2br(),
stripslashes(), and
stripcslashes().


About this entry