PHP » GoLang |
login |
register |
about
|
Result is:
preg_quote(PHP 4, PHP 5, PHP 7) preg_quote — Quote 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
|
more
Recently updated
more
Most requested
|