preg_match_all

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Perform a global regular expression match
<?php preg_match_all(    string $pattern,    string $subject,    array &$matches = null,    int $flags = 0,    int $offset = 0): int|false
<?php     protected function replaceParamWithValue(string $prefix, array $params): string

    {

        preg_match_all("@{([0-9a-zA-Z]+):?.*?\+?}@", $prefix, $matchedParams);



        for ($i = 0; $i < count($matchedParams[0]); $i++) {

            $paramValue = $params[$matchedParams[1][$i]] ?? null;