在PHP中,使用date_format函数将日期值'2014-06-18'呈现为'18 / jun'的正确格式是什么?这是我尝试过但无法正常工作的代码
<h3><?=date_format($evento->fecha,'j/M') ?></h3>
您想同时使用strtotime()和strtotime():
strtotime()
date()
来自date()
echo date('d/M', strtotime('2014-06-18')) //outputs 18/Jun