protected function getMatchArgs(array $match)
    {
        // Remove the first element, the matching regex
        array_shift($match);

        // Iterate through the arguments and remove any unwanted slashes
        foreach ($match as &$arg) {
            $arg = trim($arg, '/');
        }

        return $match;
    }
protected function getMatchArgs(array $match)
    {
        // Remove the first element, the matching regex
        array_shift($match);

        // Iterate through the arguments and remove any unwanted slashes
        foreach ($match as &$arg) {
            $arg = trim($arg, '/');
        }

        return $match;
    }
protected function getMatchArgs ( array $ match ) { // Remove the first element, the matching regex array_shift ( $ match ) ; // Iterate through the arguments and remove any unwanted slashes foreach ( $ match as & $ arg ) { $ arg = trim ( $ arg , '/' ) ; } return $ match ; }
Get and clean route arguments

@param  array $match

@return array
Get and clean route arguments