note 45702 deleted from function.getdate by tomsommer

From: Date: Wed, 15 Sep 2004 16:36:18 +0000
Subject: note 45702 deleted from function.getdate by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76749@lists.php.net to get a copy of this message
Note Submitter: modulus ---- in response to sol2ray at yahoo dot com function date_sign($mday) { if($mday % 10 == 1) $day_sign = 'st'; elseif ($mday % 10 == 2 ) $day_sign = 'nd'; elseif($mday % 20 == 3) $day_sign = 'rd'; else $day_sign = 'th'; return $day_sign; } For a slightly shorter notation.

« previous php.notes (#76749) next »