note 95359 modified in function.jdmonthname by thiago

From: Date: Tue, 29 Dec 2009 13:18:44 +0000
Subject: note 95359 modified in function.jdmonthname by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-164426@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.... <?php function getMonthName($Month){ $strTime=mktime(1,1,1,$Month,1,date("Y")); return date("F",$strTime); } echo getMonthName(10); ?> Output: October --was-- 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 http://php.net/manual/en/function.jdmonthname.php

« previous php.notes (#164426) next »