1<?php 2 3/** @generate-class-entries */ 4 5/** @param array $matches */ 6function preg_match(string $pattern, string $subject, &$matches = null, int $flags = 0, int $offset = 0): int|false {} 7 8/** @param array $matches */ 9function preg_match_all(string $pattern, string $subject, &$matches = null, int $flags = 0, int $offset = 0): int|false {} 10 11/** 12 * @param int $count 13 * @return string|array<int|string, string>|null 14 */ 15function preg_replace(string|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, &$count = null): string|array|null {} 16 17/** 18 * @param int $count 19 * @return string|array<int|string, string>|null 20 */ 21function preg_filter(string|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, &$count = null): string|array|null {} 22 23/** 24 * @param int $count 25 * @return string|array<int|string, string>|null 26 */ 27function preg_replace_callback(string|array $pattern, callable $callback, string|array $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {} 28 29/** @param int $count */ 30function preg_replace_callback_array(array $pattern, string|array $subject, int $limit = -1, &$count = null, int $flags = 0): string|array|null {} 31 32/** 33 * @return array<int|string, string|array>|false 34 * @refcount 1 35 */ 36function preg_split(string $pattern, string $subject, int $limit = -1, int $flags = 0): array|false {} 37 38function preg_quote(string $str, ?string $delimiter = null): string {} 39 40/** @refcount 1 */ 41function preg_grep(string $pattern, array $array, int $flags = 0): array|false {} 42 43function preg_last_error(): int {} 44 45function preg_last_error_msg(): string {} 46