我有一個數組,看起來像這樣:排序陣列基於數量價值
Array
(
[0] => [email protected] 20140827
[1] => [email protected] 20130827
[2] => [email protected] 20140825
[3] => [email protected] 20120825
[4] => [email protected] 20140826
)
現在我想排序此數組中的PHP基於數字只有這麼忽略了排序的電子郵件住址處理。
你看看在[排序功能列表]需要(http://php.net/manual/en/array.sorting.php)的排序該手冊,看看他們有沒有可以幫助你? – Jon 2014-08-27 11:48:23
ksort可以幫助你:http://php.net/manual/en/function.ksort.php – Logar 2014-08-27 11:48:54
@Logar:'ksort'不能幫到這裏。 – Jon 2014-08-27 11:49:27