Skip to content
PI Media – Apps Development
Ionic + Angular Hybrid Mobile Apps, WordPress API, Plugins & Themes Development
PI Media - Apps DevelopmentPI Media - Apps Development
  • Home
    • Our Products
    • Expertise
    • Featured Projects
    • Clients
    • Request Quote
  • JSON API User Plus
    • How It Works
    • Pricing
    • API Documentation
    • Benefits
    • Resources & Articles
    • Questions & Support
  • PI API Docs
    • Overview
    • Pricing
    • How It Works
    • Shortcodes
    • Features & Benefits
    • Questions & Support
  • WordPress
    • JSON API User Plus
    • MemberClicks Auth WordPress Plugins
    • PI API Documentation
    • JSON API User
    • JSON API Auth
    • JSON API Cincopa
    • oEmbed External Video
  • Solutions
    • MemberClicks Auth WordPress Plugins
    • Mobile App Development for WordPress Magazine
    • PIM osCommerce Slider
    • PHP Script to Upload from iPhone
    • Upload Photo from iPhone using Formidable Pro
    • Upload Photos to WordPress from iPhone
  • Process
  • Blog
  • Contact
Search:
  • Home
    • Our Products
    • Expertise
    • Featured Projects
    • Clients
    • Request Quote
  • JSON API User Plus
    • How It Works
    • Pricing
    • API Documentation
    • Benefits
    • Resources & Articles
    • Questions & Support
  • PI API Docs
    • Overview
    • Pricing
    • How It Works
    • Shortcodes
    • Features & Benefits
    • Questions & Support
  • WordPress
    • JSON API User Plus
    • MemberClicks Auth WordPress Plugins
    • PI API Documentation
    • JSON API User
    • JSON API Auth
    • JSON API Cincopa
    • oEmbed External Video
  • Solutions
    • MemberClicks Auth WordPress Plugins
    • Mobile App Development for WordPress Magazine
    • PIM osCommerce Slider
    • PHP Script to Upload from iPhone
    • Upload Photo from iPhone using Formidable Pro
    • Upload Photos to WordPress from iPhone
  • Process
  • Blog
  • Contact

Daily Archives: January 15, 2020

Display Numbers with Ordinal Suffix with PHP Function

PHP DevelopmentBy Ali QureshiJanuary 15, 2020Leave a comment

To add English ordinal number suffix after normal number, following php function returns number with proper suffix. e.g. 1st, 2nd, 3rd, 4th, 5th, 6th… For php versions prior to 5.3. use following version. For php 5.3+, using the built in php function and it is even better because works with locale, just provide your locale.

PI Media - Apps Development
copyright © 2020 PI Media parorrey.com
  • Home
  • Solutions
  • Ali’s Blog
  • Contact
  • Privacy
  • Terms
Go to Top