Showing posts with label PHP. Show all posts
PHP Code to Get Ordinal Suffix of a Number
It's a user-defined function which is a lot simpler than you think. Though there might be a .NET function already in existence for this, the following function (written in PHP) does the job. It shouldn't be too hard to port it over. This ordinal function.