可能重複:
how to sort a multidemensional array by an inner key
How to sort an array of arrays in php?PHP按字段排序數組?
我怎樣纔能有點像數組:$array[$i]['title'];
陣列結構可能是這樣的:
array[0](
'id' => 321,
'title' => 'Some Title',
'slug' => 'some-title',
'author' => 'Some Author',
'author_slug' => 'some-author');
array[1](
'id' => 123,
'title' => 'Another Title',
'slug' => 'another-title',
'author' => 'Another Author',
'author_slug' => 'another-author');
所以數據顯示在ASC訂單基於標題字段在數組中?
邁克爾:蒂姆只是在幫助。首先進行搜索是這裏的一個先決條件,我們可以得到一個似乎並未先搜索/嘗試的提問者。 – halfer 2012-04-03 19:39:02