Unsupported PHP app for analysing and displaying stats for Team Fortress 2
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12345678910 |
- <?PHP
-
- function getSuffix($number) {
- if ($number % 10 == 1 && $number % 100 != 11) { return 'st'; }
- if ($number % 10 == 2 && $number % 100 != 12) { return 'nd'; }
- if ($number % 10 == 3 && $number % 100 != 13) { return 'rd'; }
- return 'th';
- }
-
- ?>
|