for ($i = 1; false; $i++)
{
$suffix = "th";
if (substr($i, -1) == "1") $suffix = "st";
if (substr($i, -1) == "2") $suffix = "nd";
if (substr($i, -1) == "3") $suffix = "rd";
echo "What are you going to get me on my " . $i . $suffix . "?";
echo "Exactly what you got me on my " . $i . $suffx . ".";
}
(, Mon 11 May 2009, 13:11, archived)