note 95359 added to function.jdmonthname
| From: | ukarmakar at gmail dot com | Date: | Tue, 29 Dec 2009 07:40:22 +0000 |
| Subject: | note 95359 added to function.jdmonthname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-164417@lists.php.net to get a copy of this message | ||
You can get the month name by passing the month integer value to a simple function....
function getMonthName($Month){
$strTime=mktime(1,1,1,$Month,1,date("Y"));
return date("F",$strTime);
}
echo getMonthName(10);
Output:
October
----
Server IP: 59.162.86.123
Probable Submitter: 59.93.184.184
----
Manual Page -- http://www.php.net/manual/en/function.jdmonthname.php
Edit -- https://master.php.net/note/edit/95359
Del: integrated -- https://master.php.net/note/delete/95359/integrated
Del: useless -- https://master.php.net/note/delete/95359/useless
Del: bad code -- https://master.php.net/note/delete/95359/bad+code
Del: spam -- https://master.php.net/note/delete/95359/spam
Del: non-english -- https://master.php.net/note/delete/95359/non-english
Del: in docs -- https://master.php.net/note/delete/95359/in+docs
Del: other reasons-- https://master.php.net/note/delete/95359
Reject -- https://master.php.net/note/reject/95359
Search -- https://master.php.net/manage/user-notes.php