warhead2020 Posted June 19, 2008 Share Posted June 19, 2008 Hello, can some one help me, how to use "For Each" to display 2 dimensional array.Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/110851-display-array-2-dimensional-by-using-for-each/ Share on other sites More sharing options...
lilwing Posted June 19, 2008 Share Posted June 19, 2008 What do you want? It is not clear. Link to comment https://forums.phpfreaks.com/topic/110851-display-array-2-dimensional-by-using-for-each/#findComment-568743 Share on other sites More sharing options...
warhead2020 Posted June 19, 2008 Author Share Posted June 19, 2008 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. Link to comment https://forums.phpfreaks.com/topic/110851-display-array-2-dimensional-by-using-for-each/#findComment-568771 Share on other sites More sharing options...
kenrbnsn Posted June 19, 2008 Share Posted June 19, 2008 See my answer in your other post. This is why you shouldn't double post. I'm locking this one. Ken Link to comment https://forums.phpfreaks.com/topic/110851-display-array-2-dimensional-by-using-for-each/#findComment-568774 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.