1. CSS
  2. Flash
  3. HTML
  4. Illustrator
  5. Java
  6. JavaScript
  7. Maya
  8. Photography
  9. Photoshop
  10. PHP
  11. Ruby
  12. Ruby on Rails
  13. 3ds Max

PHP: Adding th, st, and rd on numbers and dates with PHP

  1. Clicks today:
    0
  2. Clicks this month:
    0
  3. Overall rating:
    5.00/5

PHP » Date and Time — over 4 years ago
Ever wanted to display a date and not known how to get “th” after your 7 to make December 7th, 1941? Or wanted to show a visitor to a website that they were the 4,721st visitor and not visitor number 4,721?

Comments

Your Comment

You must be logged in to post a comment.