note 27350 deleted from function.date by victor

From: Date: Sun, 08 Dec 2002 20:06:39 +0000
Subject: note 27350 deleted from function.date by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-40540@lists.php.net to get a copy of this message
Here's a simple way to convert the number of a month into the name of the month. 1 will give January 2 will give February ... 12 will give December $month_number = 3; $month_name = date ("F", mktime (0,0,0,$month_number,1,2000)); echo "Month number $month_number is called $month_name"; // will print out March

« previous php.notes (#40540) next »