1
複雑な配列が生成されていますが、それを['file_date']
でソートしようとしています。降順。ここにあります:PHP配列複合ソート
Array (
['images'] => Array (
['93-1138446.jpg'] => Array (
['file_title'] => '93-1138446',
['file_path'] => 'gallery-images-1435/93-1138446.jpg',
['thumb_path'] => 'resources/cache/275x275-75-d3cc92863d4f10bb6cf733159689a0e660fe5847df52beb531fa45b584876f0b.jpg',
['file_date'] => '1497471649'
),
['93-8315415.jpg'] => Array (
['file_title'] => '93-8315415',
['file_path'] => 'gallery-images-1435/93-8315415.jpg',
['thumb_path'] => 'resources/cache/275x275-75-76a8495b1514b8385f090381edf21f64a6c71d2f15c14e0eadabbfce2824fe9a.jpg',
['file_date'] => '1497471650'
),
['94-1234.jpg'] => Array (
['file_title'] => '94-1234',
['file_path'] => 'gallery-images-1435/94-1234.jpg',
['thumb_path'] => 'resources/cache/275x275-75-6e20bd7f6644db1c0fa36600d2aa298b6a5d11e578113f9015fd90dc6b7390e5.jpg',
['file_date'] => '1497470721'
)
)
);
ありがとうございます。
デュープ:https://stackoverflow.com/questions/17364127/how-can-i-sort-arrays-and-data-in-phpまたはhttps: //stackoverflow.com/questions/96759/how-do-i-sort-a-multidimensional-array-in-phpまたはhttps://stackoverflow.com/questions/2699086/sort-multi-dimensional-array-by-値?rq = 1 – rtfm