PHPRegexpreg_quote

Quote regular expression characters.

Syntax

preg_quote(string $str, ?string $delimiter): string