note 68461 modified in function.strftime by danbrown
| From: | danbrown@php.net | Date: | Sun, 20 Jul 2008 03:47:21 +0000 |
| Subject: | note 68461 modified in function.strftime by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142087@lists.php.net to get a copy of this message | ||
To mcallister, phloe and anyone else who want to get on the getDaySuffix() band wagon:
There are already functions to do this. All you really have to do is:
<?php echo date("jS", mktime(0,0,0,1,$myDay,2006)); ?>
Obviously, the only part of mktime that really matters is $myDay.
--was--
To mcallister, phloe and anyone else who want to get on the getDaySuffix() band wagon:
There are already functions to do this. All you really have to do is:
<?=date("jS", mktime(0,0,0,1,$myDay,2006))?>
Obviously, the only part of mktime that really matters is $myDay.
http://php.net/manual/en/function.strftime.php