1
我怎麼能做出一個很好的搜索結果,如谷歌 我不能包圍我的頭這麼多。謝謝你提供的所有幫助。多維數組上的foreach循環
Array
(
[summary] => Array
(
[what] => pizza
[where] => city
)
[listings] => Array
(
[0] => Array
(
[parent] =>
[contents] => Array
(
[Video] => Array
(
[avail] =>
)
)
[id] => 1114638
[name] => Sexy house
[address] => Array
(
[street] => 3 King St E
[city] => loversLane
[prov] => AB
[pcode] => L8N1A1
)
[geoCoded] => Array
(
[latitude] => 43.256373
[longitude] => -79.868167
)
)
)
)
this works good at printing:
function recursivePrint($elem) {
foreach ($elem as $key => $value) {
if (is_array($value))
$this->recursivePrint($value);
else
print $value.'<br>';
}
}
但我希望能夠鏈接到結果等等有地理編碼作爲變量,所以我可以使用地圖。儘可能多地控制線條。
Thaks雅各代碼段沒有想和我一起工作。 – mrpowless 2010-12-14 17:35:05