ALIAS

pm()

ShortPHP reference for preg_match().

Signature

preg_match(string $pattern, string $subject, array &$matches = null, int $flags = 0, int $offset = 0): int|false

Example

pm(...);

PHP equivalent

preg_match() is the canonical PHP function. ShortPHP provides pm() as the convenience alias.

Extension: pcre

Official PHP manual ↗

Reference navigation

Previous: phpver()

Next: pma()

Back to reference