Function __global->preg_replace
Definitions
sources_custom/phpstub.php
- Perform a regular expression search and replace.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$pattern | mixed | required parameter | N/A | N/A | The pattern (string or array) |
$replacement | mixed | required parameter | N/A | N/A | The replacement string (string or array) |
$subject | mixed | required parameter | N/A | N/A | The subject string (string or array) |
$limit | integer | -1 | N/A | N/A | The limit of replacements (-1: no limit) |
$count | integer | 0 | N/A | N/A | Number of replacements made |
Return
- The string with replacements made (null: error)
- Type: ?mixed
- Set: N/A
- Range: N/A