您的位置:首页 > 其它

调用物流接口按时间正序显示数据

2016-01-19 16:02 387 查看
$followingInfo = $this->getOgisticsInfoByNum($company,$typeNu);

$count = count($followingInfo['data']);
//按时间正序排列
foreach($followingInfo['data'] as $key => $val){
$followingInfo['data'][$count - ($key + 1)] = $val;
}

//先统计数组总的个数,在循环的时候减去对应的key+1的值。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: