<?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;