Return to Snippet

Revision: 22454
at January 13, 2010 01:47 by giak


Initial Code
// convert > mois numérique vers > mois texte
function moisFr ($month){
    if (strlen($month) == 1) {
        $month = '0' . $month;
    }
    $liste_mois_fr = array("01" => "Janvier" , "02" => "Février" , "03" => "Mars" , "04" => "Avril" , "05" => "Mai" , "06" => "Juin" , "07" => "Juillet" , "08" => "Août" , "09" => "Septembre" , "10" => "Octobre" , "11" => "Novembre" , "12" => "Décembre");
    return $liste_mois_fr[$month];
}

Initial URL
http://www.giacomel.fr

Initial Description


Initial Title
PHP : co,nvert a int Month to french String

Initial Tags
date, array

Initial Language
PHP