Array
(
[0] => Array
(
[id] =>
[test] => 145198
[defender] => 5590478
[stake] => 107
[game_id] =>
)
[1] => Array
(
[id] =>
[test] => 145198
[defender] => 5590478
[stake] => 107
[game_id] =>
)
如何爲它做一個foreach循環呢?如何創建一個foreach循環?
到目前爲止,我有:
$mresults = $game_set->get_it();
foreach ($mresults as $key => $row)
{ ...dosomething}
,但我認爲我需要做的另外一個這裏面一個。
有什麼想法? 感謝
爲什麼你需要另一個呢?您想做什麼?爲什麼'$ row ['defender']'(在你的當前循環中)不夠? – Christian 2011-05-09 21:27:42