可以使用usort函数来对数组进行排序,根据每一项的"sid"字段进行比较。

usort($data['url'], function($a, $b){
    return $a['sid'] - $b['sid'];
});

这样就可以将$data['url']中的每一项按照"sid"字段升序排列。

foreach $resinfovod_play_list as $k = $v $url_data = from = $vplayer_infoshow url = sid = $vsid count= $v

原文地址: https://www.cveoy.top/t/topic/i4Cp 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录