string|string[] $pattern:
string|string[] $replacement:
string $subject:
public static function replace($pattern, $replacement, $subject, int $limit = -1) : ReplaceResult { $result = Preg::replace($pattern, $replacement, $subject, $limit, $count); return new ReplaceResult($count, $result); }