$followingInfo = $this->getOgisticsInfoByNum($company,$typeNu);
$count = count($followingInfo['data']);
//按时间正序排列
foreach($followingInfo['data'] as $key => $val){
$followingInfo['data'][$count - ($key + 1)] = $val;
}
//先统计数组总的个数,在循环的时候减去对应的key+1的值。
调用物流接口按时间正序显示数据
阅读 90
2022-12-06
$followingInfo = $this->getOgisticsInfoByNum($company,$typeNu);
$count = count($followingInfo['data']);
//按时间正序排列
foreach($followingInfo['data'] as $key => $val){
$followingInfo['data'][$count - ($key + 1)] = $val;
}
//先统计数组总的个数,在循环的时候减去对应的key+1的值。
相关推荐
精彩评论(0)