Zend\Stratigility\Next::getBorder PHP Method

getBorder() private method

Determine the border between the request path and current route
private getBorder ( string $path, string $route ) : string
$path string
$route string
return string
    private function getBorder($path, $route)
    {
        if ($route === '/') {
            return '/';
        }
        $routeLength = strlen($route);
        return strlen($path) > $routeLength ? $path[$routeLength] : '';
    }