PHP Manualpreg_quote(PHP 4, PHP 5) preg_quote — Quote 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 string. Changelog
Examples
Example #1 preg_quote() example
<?php
Example #2 Italicizing a word within some text
<?php Notes
![]() |
PHP-Index
New Tutorial entries
|