note 106585 added to function.jdmonthname
| From: | viju dot kantah at gmail dot com | Date: | Mon, 21 Nov 2011 06:34:33 +0000 |
| Subject: | note 106585 added to function.jdmonthname | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184589@lists.php.net to get a copy of this message | ||
<?php
/* Simple way to get current month name */
$mons = array(1 => "Jan", 2 => "Feb", 3 => "Mar", 4 =>
"Apr", 5 => "May", 6 => "Jun", 7 => "Jul", 8 =>
"Aug", 9 => "Sep", 10 => "Oct", 11 => "Nov", 12
=> "Dec");
$date = getdate();
$month = $date['mon'];
$month_name = $mons[$month];
echo $month_name; // Displays the current month
?>
----
Server IP: 59.162.86.8
Probable Submitter: 183.82.122.254
----
Manual Page -- http://www.php.net/manual/en/function.jdmonthname.php
Edit -- https://master.php.net/note/edit/106585
Del: integrated -- https://master.php.net/note/delete/106585/integrated
Del: useless -- https://master.php.net/note/delete/106585/useless
Del: bad code -- https://master.php.net/note/delete/106585/bad+code
Del: spam -- https://master.php.net/note/delete/106585/spam
Del: non-english -- https://master.php.net/note/delete/106585/non-english
Del: in docs -- https://master.php.net/note/delete/106585/in+docs
Del: other reasons-- https://master.php.net/note/delete/106585
Reject -- https://master.php.net/note/reject/106585
Search -- https://master.php.net/manage/user-notes.php