function Preg::isMatchWithOffsets
Variant of matchWithOffsets() which returns a bool instead of int
Runs preg_match with PREG_OFFSET_CAPTURE
@param-out array<int|string, array{string|null, int<-1, max>}> $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::isMatchWithOffsets()
- XdebugHandler::writeTmpIni in vendor/
composer/ xdebug-handler/ src/ XdebugHandler.php - Returns true if the tmp ini file was written
File
-
vendor/
composer/ pcre/ src/ Preg.php, line 358
Class
Namespace
Composer\PcreCode
public static function isMatchWithOffsets(string $pattern, string $subject, ?array &$matches, int $flags = 0, int $offset = 0) : bool {
return (bool) static::matchWithOffsets($pattern, $subject, $matches, $flags, $offset);
}