MrXander Posted July 22, 2007 Share Posted July 22, 2007 Hi there, I'm currently working on a website with rankings. On each users profile, I use this code below to show their current rank: <?php echo $rank; ?> Question is, can I show after it "st" and so on, for example: 1st 2nd 3rd 4th etc... Quote Link to comment Share on other sites More sharing options...
LiamProductions Posted July 22, 2007 Share Posted July 22, 2007 I don't think its possible with that one line of code. But if you code out some more you will probaly me able to. Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted July 22, 2007 Share Posted July 22, 2007 As far as im aware, there's no prebuilt method of doing this. However, a quick google will find you some functions. This one is from the Zend website: http://www.zend.com/code/codex.php?id=881&single=1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.