Get English Ordinal Number Suffix in PHP

by Zinal // Feb 1,2013 // No comment

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.

RELATED POST

The Readers’ Poll – June 2013

Chart is a graphical representation of dynamic data and php has very useful chart libraries using it easily create charts in php. So,Here is new READ MORE

To increase Product Imagesize in Opencart

Here,I come with one more new article in Opencart.In this quick article,I am going to share how to increare product image upload size into Opencart. READ MORE

Five Reasons Why You Should Go With PHP

Reasons simply incline us to believe in our decisions. They tend us to work hard to prove our decision as the productive ones. Therefore, you READ MORE

What Is Making People Insane for Cake PHP?

It is necessary to understand the increasing demands of cakePHP framework before going further to find credible programmers. Some other frameworks like Zend and Symphony READ MORE

Notice: Use of undefined constant HTTP_IMAGE in OpenCart

Here in this quick article, I am going to share solution of notice got in opencart.Opencart is the free,open source ecommerce system.OpenCart is robust and READ MORE

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">