31.05.2015, 15:58
PHP код:
IntegerWithDelimiter(integer, delimiter[] = ",")
{
new
string[16],
count;
format(string, sizeof(string), "%d", integer);
for (new i = strlen(string) - 1; i > 0; --i)
{
if (++count == 3)
{
strins(string, delimiter, i, sizeof (string));
count = 0;
}
}
return string;
}