note 30635 deleted from ref.strings by tomsommer

From: Date: Wed, 15 Sep 2004 20:48:04 +0000
Subject: note 30635 deleted from ref.strings by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-76789@lists.php.net to get a copy of this message
Note Submitter: missnglnk at missnglnk dot com ---- Here's a better function to get the numerical thingy (1st, 2nd, 3rd, etc): function nth ($n) { $rn = $n{strlen($n)}; switch ($rn) { case 1: $suffix = "st"; break; case 2: $suffix = "nd"; break; case 3: $suffix = "rd"; break; default: $suffix = "th"; break; } return $n . $suffix; }

« previous php.notes (#76789) next »