PHP:co,将int Month转换为法语字符串

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP:co,将int Month转换为法语字符串相关的知识,希望对你有一定的参考价值。

  1. // convert > mois numérique vers > mois texte
  2. function moisFr ($month){
  3. if (strlen($month) == 1) {
  4. $month = '0' . $month;
  5. }
  6. $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");
  7. return $liste_mois_fr[$month];
  8. }

以上是关于PHP:co,将int Month转换为法语字符串的主要内容,如果未能解决你的问题,请参考以下文章