note 39031 deleted from function.strtotime by didou
| From: | didou@php.net | Date: | Thu, 15 Jan 2004 08:23:21 +0000 |
| Subject: | note 39031 deleted from function.strtotime by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-63584@lists.php.net to get a copy of this message | ||
Note Submitter: Jono Bacon
----
There are cases where you want to convert a month number to a month name. If we assume the month
number is in $i and we want month number 2 (Febuary), you can get this with:
date("F", strtotime($i/1/02))
The important bit here is that $i is positioned first in the date string. You need to supply a full
date to strtotime for it to work. This little hack works around this.