[ create a new paste ] login | about

Link: http://codepad.org/wsC7dxKj    [ raw code | output | fork ]

PHP, pasted on Jul 26:
1
2
3
4
5
6
7
8
9
10
11
<?php

function getAccountID($steam_id){ 
    $account_id = substr(decbin($steam_id), 32); 
    $account_id = bindec($account_id); 
     
    return $account_id; 
}  

echo PHP_INT_MAX . "\n";
echo getAccountID('76561198055198692');


Output:
1
2
2147483647
0


Create a new paste based on this one


Comments: