0
Ive得到了來自DB輸出數組查找混合陣列的最高MAX()
Array
(
[0] => Array
(
[name] => Fernando Alonso
[time1] => 3.25
[time2] => 3.25
[time3] => 3.5
)
[1] => Array
(
[name] => Jenson Button
[time1] => 34
[time2] => 41
[time3] => 41
)
)
我想做的事是每個驅動器輸出他們的名字和他們的時間最快的財產以後像
費爾南多Alsonso ,時間3 - 3.5
巴頓,時間2,時間3 - 41
我打得周圍使用max()
但無法得到它的工作,因爲它是就吃克麻煩作爲第一個元素是一個字符串,而不是一個int/num,
任何想法如何我會寫這個功能?
工作過的魅力,謝謝! – sam 2013-05-08 16:16:36
您是否看到我的編輯? – RMcLeod 2013-05-08 16:17:15
是的,謝謝,對不起草率的措辭在我身邊 – sam 2013-05-08 16:19:48