Escapes a string for use in a URL pattern component.
Description
See also
Parameters
$strstringrequired- String to be escaped.
Source
private static function escape_pattern_string( string $str ): string {
return addcslashes( $str, '+*?:{}()\\' );
}
Changelog
| Version | Description |
|---|---|
| 6.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.