public static function getPassword(UriInterface $uri): string
    {
        $userInfo = explode(':', $uri->getUserInfo());

        return (isset($userInfo[1]) ? $userInfo[1] : '');
    }
public static function getPassword(UriInterface $uri): string
    {
        $userInfo = explode(':', $uri->getUserInfo());

        return (isset($userInfo[1]) ? $userInfo[1] : '');
    }
public static function getPassword ( UriInterface $ uri ) : string { $ userInfo = explode ( ':' , $ uri -> getUserInfo ( ) ) ; return ( isset ( $ userInfo [ 1 ] ) ? $ userInfo [ 1 ] : '' ) ; }
Get the password component of the given Uri

@param UriInterface $uri
@return string If the URI had no password an empty string is returned.
Get the password component of the given Uri