Function __global->preg_replace_callback_array
Definitions
sources_custom/phpstub.php
- Perform a regular expression search and replace using callbacks.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: string
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$patterns_and_callbacks | array | required parameter | N/A | N/A | An associative array mapping patterns (keys) to callables (values) |
$subject | string | required parameter | N/A | N/A | The subject string |
$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: ?string
- Set: N/A
- Range: N/A