Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Preg.php

function Preg::isMatchAll

Variant of matchAll() which returns a bool instead of int

@param-out array<int|string, list<string|null>> $matches

Parameters

non-empty-string $pattern:

array<mixed> $matches Set by method:

int-mask<PREG_UNMATCHED_AS_NULL> $flags PREG_UNMATCHED_AS_NULL is always set, no other flags are supported:

1 call to Preg::isMatchAll()
JsonManipulator::removeSubNode in vendor/composer/composer/src/Composer/Json/JsonManipulator.php

File

vendor/composer/pcre/src/Preg.php, line 328

Class

Preg

Namespace

Composer\Pcre

Code

public static function isMatchAll(string $pattern, string $subject, ?array &$matches = null, int $flags = 0, int $offset = 0) : bool {
    return (bool) static::matchAll($pattern, $subject, $matches, $flags, $offset);
}
RSS feed
Powered by Drupal