Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Counts all elements in an array or in a Countable object
Alias sizeof
<?php count(Countable|array $value, int $mode = COUNT_NORMAL): int
<?php     {

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



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

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

            if (null == $paramValue) {

                throw new InvalidArgumentException("Missing route parameter value for \"{$matchedParams[1][$i]}\"");
<?php     {

        $results = [];



        for ($i = 0; $i < count($routes); $i++) {

            $route = $routes[$i]->getData();

            $results[$i]['route'] = $route;

            if (!empty($route['group'])) {