Summary: Quote meta characters
PHP 5Related methods: addcslashes, addslashes, ereg, htmlentities, htmlspecialchars, nl2br, preg_quote, stripcslashes, stripslashes
string quotemeta(string $str)
Description
Returns a version of str with a backslash character (\) before every character that is among these: . \ + * ? [ ^ ] ( $ )
Return: string
Returns the string with meta characters quoted, or FALSE
if an empty string is given as str
.
Parameters
Mandatory
- string $str: The input string.
Notes
- This function is binary-safe.