我有此數組:PHP多排序數組項
Array
(
[0] => stdClass Object
(
[ID] => 1206
[post_title] => Corporation 5
[zip_code] => 33017
[miles] => 13.24
)
[1] => stdClass Object
(
[ID] => 1197
[post_title] => Contract deal
[zip_code] => 33432
[miles] => 22.7
)
[2] => stdClass Object
(
[ID] => 1057
[post_title] => Corporation Deal test1
[zip_code] => 33019
[miles] => 0
)
[3] => stdClass Object
(
[ID] => 1040
[post_title] => Bankruptcy Deal1 test lorem ipsum
[zip_code] => 33019
[miles] => 0
)
[4] => stdClass Object
(
[ID] => 993
[post_title] => Finally an Affordable Living Trust, Only $100!
[zip_code] => 33019
[miles] => 0
)
)
而且我想要的結果排序「哩」。
我該怎麼做?
第一步將包括一個名爲「英里」中的對象成員,我會說... – fvu 2012-07-25 11:52:02
但是哪裏有英里 – bugwheels94 2012-07-25 11:52:46
英里?基於郵政編碼,我們必須計算里程,然後理清? – Makesh 2012-07-25 11:53:14