Re: outputting multi-dim array
- From: "J.O. Aho" <user@xxxxxxxxxxx>
- Date: Thu, 25 Jan 2007 19:03:05 +0100
Decavolt wrote:
I'm very used to using a for loop over single-dim arrays but not so
much on mult-dim arrays. I'd like to output something like this:
Usually you add a for loop for each dimention
for($i=0;$i<count($array);$i++) {
//do what you need to do for first - Search Engines, Boogers
echo $array[$i];
for($j=0;$j<count($array[$i]);$j++) {
//do what you need to do for second Google,Yahoo+Slimy,Crunchy
echo $array[$i][$j];
}
}
--
//Aho
.
- References:
- outputting multi-dim array
- From: Decavolt
- outputting multi-dim array
- Prev by Date: outputting multi-dim array
- Next by Date: problems with reading email with php
- Previous by thread: outputting multi-dim array
- Next by thread: problems with reading email with php
- Index(es):