public static function resolveVanityUrl($vanityUrl) {
        $params = ['vanityurl' => $vanityUrl];

        $result = WebApi::getJSONObject('ISteamUser', 'ResolveVanityURL', 1, $params);
        $result = $result->response;

        if ($result->success != 1) {
            return null;
        }

        return $result->steamid;
    }
public static function resolveVanityUrl($vanityUrl) {
        $params = ['vanityurl' => $vanityUrl];

        $result = WebApi::getJSONObject('ISteamUser', 'ResolveVanityURL', 1, $params);
        $result = $result->response;

        if ($result->success != 1) {
            return null;
        }

        return $result->steamid;
    }
public static function resolveVanityUrl ( $ vanityUrl ) { $ params = [ 'vanityurl' => $ vanityUrl ] ; $ result = WebApi :: getJSONObject ( 'ISteamUser' , 'ResolveVanityURL' , 1 , $ params ) ; $ result = $ result -> response ; if ( $ result -> success != 1 ) { return null ; } return $ result -> steamid ; }
Resolves a vanity URL of a Steam Community profile to a 64bit numeric
SteamID

@param string $vanityUrl The vanity URL of a Steam Community profile
@return string The 64bit SteamID for the given vanity URL
@throws WebApiException if the request to Steam's Web API fails
Resolves a vanity URL of a Steam Community profile to a 64bit numeric SteamID