ABOUTYOU
请参阅此示例代码<?php $json = '{ "Message": "Done.", "Status": true, "InnerData": [ { "id": 66, "name": "first", "distance": 74 }, { "id": 67, "name": "second", "distance": 153 }, { "id": 68, "name": "third", "distance": 172 }]}';$array = json_decode($json, true);usort($array['InnerData'], function($a, $b) { return $a['distance'] <=> $b['distance'];});print_r($array);我希望它对你有帮助。