ALIAS

prp()

ShortPHP reference for preg_replace().

Signature

preg_replace(string|array $pattern, string|array $replacement, string|array $subject, int $limit = -1, int &$count = null): string|array|null

Example

prp(...);

PHP equivalent

preg_replace() is the canonical PHP function. ShortPHP provides prp() as the convenience alias.

Extension: pcre

Official PHP manual ↗

Reference navigation

Previous: pma()

Next: prr()

Back to reference