Possible Duplicate:
Display numbers with ordinal suffix in PHP
I think they are called Ordinal suffixes.
Have seen examples for dates...
But just wondered if there was some php that can spew out the suffix dependant on number.
Example: we are spewing out the leaderboard score of our users.
So member ranked number 1. we wish to echo: 1'st and member ranked 847. we want to spew out 847'th
etc etc
I cannot give example, as the numbers are rendered on page via our dB
Just wondered if there was some sort of code snippet, that could add automagically 'th or 'st or 'rd to the appropriate number.