从MySQL收到的格式和echo日期时间字符串?

puf*_*muf 3 php

我如何格式化从MySQL收到的日期时间字符串?例如,当我这样做

echo $info['start_datetime']
Run Code Online (Sandbox Code Playgroud)

我得到了2012-03-18 21:00:00,但我想把它变成2012年3月18日星期日.我查看了php文档,它显示了不同的格式,但没有具体说明它们是从MySQL的.

感谢大家!

Ing*_*Ing 7

echo date('l, F d, Y', strtotime($info['start_datetime']));
Run Code Online (Sandbox Code Playgroud)