我尝试通过在 php 中使用这种技术来更改值,但它没有用!不幸的是,我也不知道这种技术的名称。所以限制我在谷歌搜索解决方案。
echo $session_slct->f("theMonth") == '01' ? "January" ||
$session_slct->f("theMonth") == '02' ? "February" ||
$session_slct->f("theMonth") == '03' ? "March" ||
$session_slct->f("theMonth") == '04' ? "April" ||
$session_slct->f("theMonth") == '05' ? "May" ||
$session_slct->f("theMonth") == '06' ? "June" ||
$session_slct->f("theMonth") == '07' ? "July" ||
$session_slct->f("theMonth") == '08' ? "August" ||
$session_slct->f("theMonth") == '09' ? "September" ||
$session_slct->f("theMonth") == '10' ? "October" ||
$session_slct->f("theMonth") == '11' ? "November" ||
$session_slct->f("theMonth") == '12' ? "December" : "Invalid Month!";