倒序输出问题,在线等,急!!! 在这行$result = $this->Execute( $query, $page, $itemsPerPage );前面加上$query .= ' order by id desc';也就是$query .= ' order by id desc';$result = $this->Execute( $query, $page, $itemsPerPage ); 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $resources = array_reverse($resources );return $resources; return array_reverse($resources); 谢谢,飞花逐月,解决了,一开始我将query .= ' order by id desc'; 写到// just in case if for any reason the string ends with "AND" 上了,呵呵 接分~前面的答案正确了。楼主请更换一个class吧。按照你的功能要求,根本用不少使用class的,函数足够了 $resources = array_reverse($resources);return $resources; $query .= ' order by id desc';$result = $this->Execute( $query, $page, $itemsPerPage );$resources = array_reverse($resources);return $resources;这两个效率上有没有区别? 本地测试无问题 但上传虚拟后出错 请高手指点 php+iis+oracle配置环境下报错 菜鸟问题,为什么用 HTMLSpecialChars simplexml 读取xml节点出现中文乱码 有个.com的域名要卖 抓取别人网站上有POST的页面,在本地能不能显示出来呢? php创建xml并格式化输出 从MSSSQL读出图片的问题? 求救!unable to save result..... 再线等,分不够再加!! 实在想..想..想不出来,请大家指点!关于PHP! 自己写了个动态树,为什么是死循环? 数组问题`
return $resources;
return $resources;
$result = $this->Execute( $query, $page, $itemsPerPage );$resources = array_reverse($resources);
return $resources;这两个效率上有没有区别?