preg_grep
Astrotomic/php-twemoji
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Return array entries that match the pattern
<?php preg_grep
(
string $pattern
, array
$array
,
int $flags
=
0
): array|
false