preg_quoteQuote regular expression characters Description
string preg_quote
( string
$str
[, string $delimiter = NULL
] )
preg_quote takes The special regular expression characters are: . \ + * ? [ ^ ] $ ( ) { } = ! < > | : - 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
|