note 100758 added to ref.math
| From: | phpatkeithtylerdotcom at osu1 dot php dot net | Date: | Thu, 04 Nov 2010 19:09:19 +0000 |
| Subject: | note 100758 added to ref.math | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-173764@lists.php.net to get a copy of this message | ||
Another ordinal method, which does not involve utilizing date functions:
<?php
sprintf( "%d%s", $t, array_pop( array_slice( array_merge( array(
"th","st","nd","rd"), array_fill( 4,6,"th")),
$t%10, 1)));'
?>
----
Server IP: 69.147.83.197
Probable Submitter: 174.46.204.210
----
Manual Page -- http://www.php.net/manual/en/ref.math.php
Edit -- https://master.php.net/note/edit/100758
Del: integrated -- https://master.php.net/note/delete/100758/integrated
Del: useless -- https://master.php.net/note/delete/100758/useless
Del: bad code -- https://master.php.net/note/delete/100758/bad+code
Del: spam -- https://master.php.net/note/delete/100758/spam
Del: non-english -- https://master.php.net/note/delete/100758/non-english
Del: in docs -- https://master.php.net/note/delete/100758/in+docs
Del: other reasons-- https://master.php.net/note/delete/100758
Reject -- https://master.php.net/note/reject/100758
Search -- https://master.php.net/manage/user-notes.php