Jump to content

Display array 2 dimensional By using "For Each"


warhead2020

Recommended Posts

What do you want? It is not clear.

 

sorry..

i need to display the content in the array by using "For Each" loop. For example,this is for 1 dimension array..

 

$browsers = array ("Firefox", "Internet Explorer", "Opera");

foreach($browsers as $browser)

{

echo $browser";

}

 

so...my problem now....if im using 2 dimensional array...

 

array1[2][2];

 

how to use the "for each"...I hope u can understand my question...thanks.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.