English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The quotemeta() function is used to escape the meta character set.
string quotemeta ( string $str )
Returns the string escaped with a backslash (\) before the following special characters. These special characters include:
. \ + * ? [ ^ ] ( $ )
Returns the string with the meta characters escaped. If the input string str is empty, it returns FALSE.
Serial Number | Parameter and Description |
---|---|
1 | string Input String |
Try the following example, which returns the string escaped with a backslash (\) before special characters
<?php //Use quotemeta to return the string escaped with a backslash (\) before special characters $input = "www.oldtoolbag.com (simply easy learning)"; echo quotemeta($input); ?>Test and See‹/›
Output Result
www\.w3codebox\.com (simply easy learning)