<?php str_replace( array|string $search, array|string $replace, string|array $subject, int &$count = null): string|array
<?php if (null == $paramValue) { throw new InvalidArgumentException("Missing route parameter value for \"{$matchedParams[1][$i]}\""); } $prefix = str_replace($matchedParams[0][$i], $params[$matchedParams[1][$i]], $prefix); } return $prefix;
<?php $path = substr($path, 0, $pos); } $path = str_replace('//', '/', $path); $path = rawurldecode($path);
<?php if ('regExp' == $type) { $paramType = '{' . "$paramName:$regExp" . '}'; $prefix = str_replace('{' . $paramName . '}', $paramType, $prefix); } else { $paramType = '{' . "$regExp:{$this->defaultParameterTypes[$type]}" . '}'; $prefix = str_replace('{' . $regExp . '}', $paramType, $prefix);
<?php $prefix = str_replace('{' . $paramName . '}', $paramType, $prefix); } else { $paramType = '{' . "$regExp:{$this->defaultParameterTypes[$type]}" . '}'; $prefix = str_replace('{' . $regExp . '}', $paramType, $prefix); } } }