Function __global->preg_quote
Definitions
sources_custom/phpstub.php
- Quote regular expression characters.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $str | string | No | No | required parameter | N/A | N/A | The string to escape |
| $surround_char | string | No | No | / | N/A | N/A | Extra character to escape, was used in regular expression to surround it |
Returns
- The escape string
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Quote regular expression characters.
*
* @param string $str The string to escape
* @param string $surround_char Extra character to escape, was used in regular expression to surround it
* @return string The escape string
*/
function preg_quote(string $str, string $surround_char = '/') : string
* Quote regular expression characters.
*
* @param string $str The string to escape
* @param string $surround_char Extra character to escape, was used in regular expression to surround it
* @return string The escape string
*/
function preg_quote(string $str, string $surround_char = '/') : string

