- substr: documentation ( source)
- simplexml_load_file: documentation ( source)
<?php
$xml = simplexml_load_file("http://steamcommunity.com/groups/CSGOPerccom/memberslistxml/?xml=1");
foreach ($xml->members->steamID64 as $friendid)
{
if (substr($friendid,-1)%2==0) $server=0; else $server=1;
$auth=bcsub($friendid,'76561198071550434');
$auth=bcsub($auth,$server);
$auth=bcdiv($auth,2);
$steamcomid="STEAM_0:".$server.':'.$auth;
echo "$steamcomid<br>"; // or do watever with steamids
}
?>