如何对日期进行排序??在线急等!!· 你用的应该是char字段吧我觉得这样排序不行吧 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 关键是该字段不是date型我需要的顺序是:按年2005最先,按月Dec最先,按日31th最先。请教 是啊,是char型,各位有什么办法? 把数据取出来再做排序,否则直接在sql里排序,估计不好办 我也这样想过,但是不知道该怎么排,asp里不好实现! asp怎么跑到这里来问了,到asp版块去问呀 <?$array=array("Oct 19th, 2004","May 17th, 2004","Sep 26th, 2004","Jun 19th, 2004");$new_array=array_map(strtotime,$array);rsort($new_array);foreach($new_array as $value){ $out_array[]=date("M jS,Y",$value);}print_r($out_array);?> php缓存的问题! php测试mysql PHP命令行中运行 pear help 出现错误 本人不懂vBulletin,求vBulletin 的数据库结构! 请哪位大侠有空帮我看看一个分页的问题? 页面自动转向ftp 关于用户登陆验证简单问题 让我3天转向php? 谁有MD5函数的PHP版?? 为什么上载文件不能超过64K PHP调用Ms SQL存储过程(详) 如何在PHP里使用MSXML 3.0
我需要的顺序是:
按年2005最先,按月Dec最先,按日31th最先。
请教
$array=array("Oct 19th, 2004","May 17th, 2004","Sep 26th, 2004","Jun 19th, 2004");
$new_array=array_map(strtotime,$array);
rsort($new_array);
foreach($new_array as $value)
{
$out_array[]=date("M jS,Y",$value);
}
print_r($out_array);
?>