preg_quote

PHP 4, PHP 5, PHP 7, PHP 8
preg_quote - Quote regular expression characters

Example #1 preg_quote example

PHP Version:

Example #2 Italicizing a word within some text

PHP Version:


Example #3 of preg_quote

PHP Version:


Function preg_quote:

Regular Expressions (Perl-Compatible) Functions

Most used PHP functions