/ Published in: PHP
Expand |
Embed | Plain Text
function getDaySuffix($day) { switch($day) { case 1: return 'st'; case 2: return 'nd'; case 3: return 'rd'; default: return 'th'; } } // ex: $dayNumber = 1;
You need to login to post a comment.
