note 68214 deleted from function.strftime by derick

From: Date: Sat, 04 Nov 2006 10:39:58 +0000
Subject: note 68214 deleted from function.strftime by derick
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-119371@lists.php.net to get a copy of this message
Note Submitter: brian mcallister ---- phloe, the value 13 will still return "rd" using your function. As far as I know (and can be bothered to calculate), it's the only number that causes an exception to the generic rule (when taking the values 1 - 31 into account), so, you could add a single line to your function that checks for 13 and returns "th" automatically i.e. <?php // First line of your function... if($d == 13) return "th"; ?>

« previous php.notes (#119371) next »