Skip to content

Commit 586674b

Browse files
Added example for localized ordinalisation
1 parent 86694f3 commit 586674b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ echo Number::ordinalize(0); // "0th"
7373
echo Number::ordinalize(1); // "1st"
7474
echo Number::ordinalize(2); // "2nd"
7575
echo Number::ordinalize(23); // "23rd"
76-
echo Number::ordinalize(1002); // "1002nd"
76+
echo Number::ordinalize(1002, 'nl'); // "1002e"
7777
echo Number::ordinalize(-111); // "-111th"
7878

7979
```
@@ -88,7 +88,7 @@ echo Number::ordinal(1); // "st"
8888
echo Number::ordinal(2); // "nd"
8989
echo Number::ordinal(23); // "rd"
9090
echo Number::ordinal(1002); // "nd"
91-
echo Number::ordinal(-111); // "th"
91+
echo Number::ordinal(-111, 'nl'); // "e"
9292
```
9393

9494
**Roman numbers**

0 commit comments

Comments
 (0)