PHP英文日期书写顺序分英式和美式。
美国:月日年(January 8th,2014 或 January 8,2014)
英国:日月年(8th January,2014 或 8 January,2014)
function mao_get_en_date($d) {
$marr=array('January','February','March','April','May','June','July','August','September','October','November','December');
$stamp = strtotime($d);
$m = date('m',$stamp);
return substr($marr[$m-1], 0,3).' '.date('d',$stamp).', '.date('Y',$stamp);
}
// 调用
echo mao_get_en_date( date('Y-m-d G:i:s') );