Back to Top

How to Get English Ordinal Number Suffix in PHP

PHP Get English Ordinal Number Suffix

A post after very long time. Actually busy with work, here I am going to share one quick post about how to get English Ordinal Number Suffix in PHP.

While working, I have written one function to implement English ordinal numbers (1st, 2nd, 3rd) suffixes using PHP.so today I am going to explain this function to all my readers.

Well, I wanted to display numbers as follows

So I have written above code which uses a switch to test the numbers and add the suffix.This article may be obsolete, but still is useful for reference and You can use this script as a quick solution

Hope this post will helpful for you, waiting for your responses.Thanks for reading and feel free to share your thoughts! Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

Problem with German special character

Posted on 12 years ago

Bhumi

PHP Tutorial for beginners

Posted on 8 years ago

Bhumi