preg_quoteQuote regular expression characters Description
string preg_quote
( string
$str
[, string $delimiter = NULL
] )
preg_quote takes The special regular expression characters are: . \ + * ? [ ^ ] $ ( ) { } = ! < > | : - Note that / is not a special regular expression character.
Parameters
Return ValuesReturns the quoted (escaped) string. Changelog
Examples
Example #1 preg_quote example
<?php
Example #2 Italicizing a word within some text
<?php Notes
|