0
点赞
收藏
分享

微信扫一扫

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

Jonescy 2022-12-06 阅读 90


$followingInfo = $this->getOgisticsInfoByNum($company,$typeNu);

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

//先统计数组总的个数,在循环的时候减去对应的key+1的值。

举报

相关推荐

0 条评论