diff options
author | John de Kroon <johndekroon@gmail.com> | 2018-09-03 11:21:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-03 11:21:33 +0200 |
commit | 8abd21b17e9da1f3808f537643bfeaba0a790837 (patch) | |
tree | 26119f00ab2a4931a54d2b55874cdc8d5217d4d1 /user_guide_src/source/helpers/inflector_helper.rst | |
parent | 9bf6753a1bcd54d6ca69fc194efc9f982661aa66 (diff) | |
parent | 8537680955fbc045bf8011a2915e18583a91d52f (diff) |
Merge pull request #1 from bcit-ci/develop
Update from source
Diffstat (limited to 'user_guide_src/source/helpers/inflector_helper.rst')
-rw-r--r-- | user_guide_src/source/helpers/inflector_helper.rst | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/user_guide_src/source/helpers/inflector_helper.rst b/user_guide_src/source/helpers/inflector_helper.rst index 76cce6f4d..ca781d2ad 100644 --- a/user_guide_src/source/helpers/inflector_helper.rst +++ b/user_guide_src/source/helpers/inflector_helper.rst @@ -85,7 +85,7 @@ The following functions are available: echo humanize('my-dog-spot', '-'); // Prints 'My Dog Spot' -.. php:function:: is_countable($word) +.. php:function:: word_is_countable($word) :param string $word: Input string :returns: TRUE if the word is countable or FALSE if not @@ -93,17 +93,20 @@ The following functions are available: Checks if the given word has a plural version. Example:: - is_countable('equipment'); // Returns FALSE + word_is_countable('equipment'); // Returns FALSE + + .. note:: This function used to be called ``is_countable()`` in + in previous CodeIgniter versions. .. php:function:: ordinal_format($number) :param int $number: non-negative natural number to be converted - :returns: Ordinal numeral for given number or original value on failure - :rtype: string + :returns: Ordinal numeral for given number or original value on failure + :rtype: string - Returns the ordinal numeral (1st, 2nd, 3rd etc.) for a - non-negative natural number. If the input is not a natural number - greater than 0, the function will return the original value. Examples:: + Returns the ordinal numeral (1st, 2nd, 3rd etc.) for a + non-negative natural number. If the input is not a natural number + greater than 0, the function will return the original value. Examples:: echo ordinal_format(1); // Returns 1st echo ordinal_format(3); // Returns 3rd |