forked from php/php-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphp_pcre.stub.php
39 lines (28 loc) · 1.36 KB
/
php_pcre.stub.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
function preg_match(string $pattern, string $subject, &$subpatterns = null, int $flags = 0, int $offset = 0): int|false {}
function preg_match_all(string $pattern, string $subject, &$subpatterns = null, int $flags = 0, int $offset = 0): int|false|null {}
/**
* @param string|array $regex
* @param string|array $replace
* @param string|array $subject
*/
function preg_replace($regex, $replace, $subject, int $limit = -1, &$count = null): string|array|null {}
/**
* @param string|array $regex
* @param string|array $replace
* @param string|array $subject
*/
function preg_filter($regex, $replace, $subject, int $limit = -1, &$count = null): string|array|null {}
/**
* @param string|array $regex
* @param string|array $subject
*
* TODO: $callback should be `callable`
*/
function preg_replace_callback($regex, $callback, $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {}
/** @param string|array $subject */
function preg_replace_callback_array(array $pattern, $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {}
function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false {}
function preg_quote(string $str, ?string $delim_char = null): string {}
function preg_grep(string $regex, array $input, int $flags = 0): array|false {}
function preg_last_error(): int {}