private function matchVariable(): bool
    {
        foreach ($this->routesVariable as $route) {
            $this->matchVariableVars($route['u']); // find variables
            if (empty($this->vars)) {
                continue; // no variable match yet
            }
            $this->control = $route['c']; // set control for this variable match

            return true; // variable match found
        }

        return false; // variable match not found
    }
private function matchVariable(): bool
    {
        foreach ($this->routesVariable as $route) {
            $this->matchVariableVars($route['u']); // find variables
            if (empty($this->vars)) {
                continue; // no variable match yet
            }
            $this->control = $route['c']; // set control for this variable match

            return true; // variable match found
        }

        return false; // variable match not found
    }
private function matchVariable ( ) : bool { foreach ( $ this -> routesVariable as $ route ) { $ this -> matchVariableVars ( $ route [ 'u' ] ) ; // find variables if ( empty ( $ this -> vars ) ) { continue ; // no variable match yet } $ this -> control = $ route [ 'c' ] ; // set control for this variable match return true ; // variable match found } return false ; // variable match not found }
Match URI to a variable route
@return bool
Match URI to a variable route