标签: php timestamp
我正在使用<?php echo date("F jS, Y",strtotime($timestamp)); ?>将我的时间戳格式化为September 26th, 2013
<?php echo date("F jS, Y",strtotime($timestamp)); ?>
September 26th, 2013
但是我怎么能这样做呢?它格式化并缩短月份到Jan 6th, 2013 或Sep 26th, 2013
Jan 6th, 2013
Sep 26th, 2013
答案 0 :(得分:2)
使用“M”代表月份的简称。(3个字符)
<?php echo date("M jS, Y",strtotime($timestamp)); ?>
使用
http://www.php.net/manual/en/function.date.php