📜  php 将月份数字转换为名称 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:34.976000             🧑  作者: Mango

代码示例2
$monthNum  = 3;
$dateObj   = DateTime::createFromFormat('!m', $monthNum);
$monthName = $dateObj->format('F'); // March