Function __global->preg_match
Definitions
sources_custom/phpstub.php
- Perform a regular expression match.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: N/A
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$pattern | string | required parameter | N/A | N/A | The pattern |
$subject | string | required parameter | N/A | N/A | The subject string |
$matches | ?array | Null | N/A | N/A | Where matches will be put (note that it is a list of maps, except the arrays are turned inside out) (null: do not store matches). Note that this is actually passed by reference, but is also optional. (null: don't gather) |
$flags | integer | 0 | N/A | N/A | Either 0, or PREG_OFFSET_CAPTURE |
$offset | integer | 0 | N/A | N/A | Offset to start from. Usually use with 'A' modifier to anchor it (using '^' in the pattern will not work) |
Return
- The number of matches (false: error)
- Type: ~integer
- Set: N/A
- Range: N/A