Skip to content

Instantly share code, notes, and snippets.

Avatar
😄
Focusing

Hackmastr

😄
Focusing
View GitHub Profile
@Hackmastr
Hackmastr / SteamUserFunctions.php
Created Sep 23, 2015 — forked from rannmann/SteamUserFunctions.php
Convert Steam IDs to and from Community IDs and User IDs
View SteamUserFunctions.php
<?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