public static function convertId($id)
    {
        if (strlen($id) === 17) {
            $converted = substr($id, 3) - 61197960265728;
        } else {
            $converted = '765' . ($id + 61197960265728);
        }
        return (string)$converted;
    }
public static function convertId($id)
    {
        if (strlen($id) === 17) {
            $converted = substr($id, 3) - 61197960265728;
        } else {
            $converted = '765' . ($id + 61197960265728);
        }
        return (string)$converted;
    }
public static function convertId ( $ id ) { if ( strlen ( $ id ) === 17 ) { $ converted = substr ( $ id , 3 ) - 61197960265728 ; } else { $ converted = '765' . ( $ id + 61197960265728 ) ; } return ( string ) $ converted ; }
Convert DotA2 user id to Steam ID
@param string $id
@return string
Convert DotA2 user id to Steam ID