summaryrefslogtreecommitdiffstats
path: root/system/helpers/number_helper.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/helpers/number_helper.php')
-rw-r--r--system/helpers/number_helper.php42
1 files changed, 1 insertions, 41 deletions
diff --git a/system/helpers/number_helper.php b/system/helpers/number_helper.php
index 20e262e66..219124cb5 100644
--- a/system/helpers/number_helper.php
+++ b/system/helpers/number_helper.php
@@ -91,44 +91,4 @@ if ( ! function_exists('byte_format'))
return number_format($num, $precision).' '.$unit;
}
-}
-
-// ------------------------------------------------------------------------
-
-if ( ! function_exists('ordinal_format'))
-{
- /**
- * Returns the English ordinal numeral for a given number
- *
- * @param int $number
- * @return string
- */
- function ordinal_format($number)
- {
- if ( ! ctype_digit((string) $number) OR $number < 0)
- {
- return FALSE;
- }
-
- $last_digit = array(
- 0 => 'th',
- 1 => 'st',
- 2 => 'nd',
- 3 => 'rd',
- 4 => 'th',
- 5 => 'th',
- 6 => 'th',
- 7 => 'th',
- 8 => 'th',
- 9 => 'th'
- );
- if (($number % 100) >= 11 && ($number % 100) <= 13)
- {
- return $number.'th';
- }
- else
- {
- return $number.$last_digit[$number % 10];
- }
- }
-}
+} \ No newline at end of file