Skip to content

Commit c1eb4a6

Browse files
author
Julien Muggli
committed
Added thousand separator
1 parent 3436a23 commit c1eb4a6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Folding@home/foldingathome.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,32 @@
1313
],
1414
[
1515
'index' => 1,
16-
'text' => "#1: " . $json['donors'][0]['name'] . " - Total WUS: " . $json['donors'][0]['wus'] . " - Total credits: " . $json['donors'][0]['credit'] . " - Actual rank: " . $json['donors'][0]['rank'],
16+
'text' => "#1: " . $json['donors'][0]['name'] . " - Total WUS: " . number_format($json['donors'][0]['wus'], 0, '', "'") . " - Total credits: " . number_format($json['donors'][0]['credit'], 0, '', "'") . " - Actual rank: " . number_format($json['donors'][0]['rank'], 0, '', "'"),
1717
'icon' => ''
1818
],
1919
[
2020
'index' => 2,
21-
'text' => "#2: " . $json['donors'][1]['name'] . " - Total WUS: " . $json['donors'][1]['wus'] . " - Total credits: " . $json['donors'][1]['credit'] . " - Actual rank: " . $json['donors'][1]['rank'],
21+
'text' => "#2: " . $json['donors'][1]['name'] . " - Total WUS: " . number_format($json['donors'][1]['wus'], 0, '', "'") . " - Total credits: " . number_format($json['donors'][1]['credit'], 0, '', "'") . " - Actual rank: " . number_format($json['donors'][1]['rank'], 0, '', "'"),
2222
'icon' => ''
2323
],
2424
[
2525
'index' => 3,
26-
'text' => "#3: " . $json['donors'][2]['name'] . " - Total WUS: " . $json['donors'][2]['wus'] . " - Total credits: " . $json['donors'][2]['credit'] . " - Actual rank: " . $json['donors'][2]['rank'],
26+
'text' => "#3: " . $json['donors'][2]['name'] . " - Total WUS: " . number_format($json['donors'][2]['wus'], 0, '', "'") . " - Total credits: " . number_format($json['donors'][2]['credit'], 0, '', "'") . " - Actual rank: " . number_format($json['donors'][2]['rank'], 0, '', "'"),
2727
'icon' => ''
2828
],
2929
[
3030
'index' => 4,
31-
'text' => "#4: " . $json['donors'][3]['name'] . " - Total WUS: " . $json['donors'][3]['wus'] . " - Total credits: " . $json['donors'][3]['credit'] . " - Actual rank: " . $json['donors'][3]['rank'],
31+
'text' => "#4: " . $json['donors'][3]['name'] . " - Total WUS: " . number_format($json['donors'][3]['wus'], 0, '', "'") . " - Total credits: " . number_format($json['donors'][3]['credit'], 0, '', "'") . " - Actual rank: " . number_format($json['donors'][3]['rank'], 0, '', "'"),
3232
'icon' => ''
3333
],
3434
[
3535
'index' => 5,
36-
'text' => "#5: " . $json['donors'][4]['name'] . " - Total WUS: " . $json['donors'][4]['wus'] . " - Total credits: " . $json['donors'][4]['credit'] . " - Actual rank: " . $json['donors'][4]['rank'],
36+
'text' => "#5: " . $json['donors'][4]['name'] . " - Total WUS: " . number_format($json['donors'][4]['wus'], 0, '', "'") . " - Total credits: " . number_format($json['donors'][4]['credit'], 0, '', "'") . " - Actual rank: " . number_format($json['donors'][4]['rank'], 0, '', "'"),
3737
'icon' => ''
3838
],
3939
[
4040
'index' => 6,
41-
'text' => "#6: " . $json['donors'][5]['name'] . " - Total WUS: " . $json['donors'][5]['wus'] . " - Total credits: " . $json['donors'][5]['credit'] . " - Actual rank: " . $json['donors'][5]['rank'],
41+
'text' => "#6: " . $json['donors'][5]['name'] . " - Total WUS: " . number_format($json['donors'][5]['wus'], 0, '', "'") . " - Total credits: " . number_format($json['donors'][5]['credit'], 0, '', "'") . " - Actual rank: " . number_format($json['donors'][5]['rank'], 0, '', "'"),
4242
'icon' => ''
4343
],
4444
[

0 commit comments

Comments
 (0)