php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_pcre.stub.php File Reference

Go to the source code of this file.

Functions

 preg_match (string $pattern, string $subject, &$matches=null, int $flags=0, int $offset=0)
 
 preg_match_all (string $pattern, string $subject, &$matches=null, int $flags=0, int $offset=0)
 
 preg_replace (string|array $pattern, string|array $replacement, string|array $subject, int $limit=-1, &$count=null)
 
 preg_filter (string|array $pattern, string|array $replacement, string|array $subject, int $limit=-1, &$count=null)
 
 preg_replace_callback (string|array $pattern, callable $callback, string|array $subject, int $limit=-1, &$count=null, int $flags=0)
 
 preg_replace_callback_array (array $pattern, string|array $subject, int $limit=-1, &$count=null, int $flags=0)
 
 preg_split (string $pattern, string $subject, int $limit=-1, int $flags=0)
 
 preg_quote (string $str, ?string $delimiter=null)
 
 preg_grep (string $pattern, array $array, int $flags=0)
 
 preg_last_error ()
 
 preg_last_error_msg ()
 

Variables

const PREG_PATTERN_ORDER = UNKNOWN
 
const PREG_SET_ORDER = UNKNOWN
 
const PREG_OFFSET_CAPTURE = UNKNOWN
 
const PREG_UNMATCHED_AS_NULL = UNKNOWN
 
const PREG_SPLIT_NO_EMPTY = UNKNOWN
 
const PREG_SPLIT_DELIM_CAPTURE = UNKNOWN
 
const PREG_SPLIT_OFFSET_CAPTURE = UNKNOWN
 
const PREG_GREP_INVERT = UNKNOWN
 
const PREG_NO_ERROR = UNKNOWN
 
const PREG_INTERNAL_ERROR = UNKNOWN
 
const PREG_BACKTRACK_LIMIT_ERROR = UNKNOWN
 
const PREG_RECURSION_LIMIT_ERROR = UNKNOWN
 
const PREG_BAD_UTF8_ERROR = UNKNOWN
 
const PREG_BAD_UTF8_OFFSET_ERROR = UNKNOWN
 
const PREG_JIT_STACKLIMIT_ERROR = UNKNOWN
 
const PCRE_VERSION = UNKNOWN
 
const PCRE_VERSION_MAJOR = UNKNOWN
 
const PCRE_VERSION_MINOR = UNKNOWN
 
const PCRE_JIT_SUPPORT = UNKNOWN
 

Function Documentation

◆ preg_filter()

preg_filter ( string|array $pattern,
string|array $replacement,
string|array $subject,
int $limit = -1,
& $count = null )
Parameters
int$count
Returns
string|array<int|string, string>|null

Definition at line 121 of file php_pcre.stub.php.

◆ preg_grep()

preg_grep ( string $pattern,
array $array,
int $flags = 0 )

@refcount 1

Definition at line 142 of file php_pcre.stub.php.

◆ preg_last_error()

preg_last_error ( )

Definition at line 144 of file php_pcre.stub.php.

◆ preg_last_error_msg()

preg_last_error_msg ( )

Definition at line 146 of file php_pcre.stub.php.

◆ preg_match()

preg_match ( string $pattern,
string $subject,
& $matches = null,
int $flags = 0,
int $offset = 0 )
Parameters
array$matches@frameless-function {"arity": 2}

Definition at line 105 of file php_pcre.stub.php.

◆ preg_match_all()

preg_match_all ( string $pattern,
string $subject,
& $matches = null,
int $flags = 0,
int $offset = 0 )
Parameters
array$matches

Definition at line 108 of file php_pcre.stub.php.

◆ preg_quote()

preg_quote ( string $str,
?string $delimiter = null )

@compile-time-eval

Definition at line 139 of file php_pcre.stub.php.

◆ preg_replace()

preg_replace ( string|array $pattern,
string|array $replacement,
string|array $subject,
int $limit = -1,
& $count = null )
Parameters
int$count
Returns
string|array<int|string, string>|null @frameless-function {"arity": 3}

Definition at line 115 of file php_pcre.stub.php.

◆ preg_replace_callback()

preg_replace_callback ( string|array $pattern,
callable $callback,
string|array $subject,
int $limit = -1,
& $count = null,
int $flags = 0 )
Parameters
int$count
Returns
string|array<int|string, string>|null

Definition at line 127 of file php_pcre.stub.php.

◆ preg_replace_callback_array()

preg_replace_callback_array ( array $pattern,
string|array $subject,
int $limit = -1,
& $count = null,
int $flags = 0 )
Parameters
int$count

Definition at line 130 of file php_pcre.stub.php.

◆ preg_split()

preg_split ( string $pattern,
string $subject,
int $limit = -1,
int $flags = 0 )
Returns
array<int|string, string|array>|false @refcount 1

Definition at line 136 of file php_pcre.stub.php.

Variable Documentation

◆ PCRE_JIT_SUPPORT

const PCRE_JIT_SUPPORT = UNKNOWN

Definition at line 99 of file php_pcre.stub.php.

◆ PCRE_VERSION

const PCRE_VERSION = UNKNOWN

Definition at line 84 of file php_pcre.stub.php.

◆ PCRE_VERSION_MAJOR

const PCRE_VERSION_MAJOR = UNKNOWN

Definition at line 89 of file php_pcre.stub.php.

◆ PCRE_VERSION_MINOR

const PCRE_VERSION_MINOR = UNKNOWN

Definition at line 94 of file php_pcre.stub.php.

◆ PREG_BACKTRACK_LIMIT_ERROR

const PREG_BACKTRACK_LIMIT_ERROR = UNKNOWN

Definition at line 59 of file php_pcre.stub.php.

◆ PREG_BAD_UTF8_ERROR

const PREG_BAD_UTF8_ERROR = UNKNOWN

Definition at line 69 of file php_pcre.stub.php.

◆ PREG_BAD_UTF8_OFFSET_ERROR

const PREG_BAD_UTF8_OFFSET_ERROR = UNKNOWN

Definition at line 74 of file php_pcre.stub.php.

◆ PREG_GREP_INVERT

const PREG_GREP_INVERT = UNKNOWN

Definition at line 44 of file php_pcre.stub.php.

◆ PREG_INTERNAL_ERROR

const PREG_INTERNAL_ERROR = UNKNOWN

Definition at line 54 of file php_pcre.stub.php.

◆ PREG_JIT_STACKLIMIT_ERROR

const PREG_JIT_STACKLIMIT_ERROR = UNKNOWN

Definition at line 79 of file php_pcre.stub.php.

◆ PREG_NO_ERROR

const PREG_NO_ERROR = UNKNOWN

Definition at line 49 of file php_pcre.stub.php.

◆ PREG_OFFSET_CAPTURE

const PREG_OFFSET_CAPTURE = UNKNOWN

Definition at line 19 of file php_pcre.stub.php.

◆ PREG_PATTERN_ORDER

const PREG_PATTERN_ORDER = UNKNOWN

Definition at line 9 of file php_pcre.stub.php.

◆ PREG_RECURSION_LIMIT_ERROR

const PREG_RECURSION_LIMIT_ERROR = UNKNOWN

Definition at line 64 of file php_pcre.stub.php.

◆ PREG_SET_ORDER

const PREG_SET_ORDER = UNKNOWN

Definition at line 14 of file php_pcre.stub.php.

◆ PREG_SPLIT_DELIM_CAPTURE

const PREG_SPLIT_DELIM_CAPTURE = UNKNOWN

Definition at line 34 of file php_pcre.stub.php.

◆ PREG_SPLIT_NO_EMPTY

const PREG_SPLIT_NO_EMPTY = UNKNOWN

Definition at line 29 of file php_pcre.stub.php.

◆ PREG_SPLIT_OFFSET_CAPTURE

const PREG_SPLIT_OFFSET_CAPTURE = UNKNOWN

Definition at line 39 of file php_pcre.stub.php.

◆ PREG_UNMATCHED_AS_NULL

const PREG_UNMATCHED_AS_NULL = UNKNOWN

Definition at line 24 of file php_pcre.stub.php.