Skip to content

Instantly share code, notes, and snippets.

View Rainyan's full-sized avatar

Rainyan

  • Finland
  • 11:12 (UTC +02:00)
View GitHub Profile
@Rainyan
Rainyan / SteamUserFunctions.php
Created June 18, 2017 16:56 — forked from rannmann/SteamUserFunctions.php
Convert Steam IDs to and from Community IDs and User IDs
<?php
/* Examples
toSteamID(25490879) // STEAM_0:1:12745439
toSteamID(76561197985756607) // STEAM_0:1:12745439
toSteamID("STEAM_0:1:12745439") // STEAM_0:1:12745439
toUserID(25490879) // 25490879
toUserID(76561197985756607) // 25490879
toUserID("STEAM_0:1:12745439") // 25490879