PHP Questions Home
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How can I display a 2 dimensonal array?


If you want to simply see all the values, then you can use print_r or var_dump.

If you want to view them more clearly or do something with the values therein, you can simply nest foreach loops for each level of the array.

Comments on this Question/Answer

How to get val Dynamically from MySQL server. i am developping quiz engine in .net i am using grid view and PHP what and HoW?
By: Gaurav, 15 Dec 2008 22:39:48



Reply to comments / post your own comment >>>

ASK A QUESTION

More arrays PHP Questions

OK I've been trying to echo out the arrays "$people and $other people" using the for-each method in alphabetical order. but when i see what this displays it does it in some other order. THIS IS THE CODE PHP Ch8 Lab

How do I pick a random value from an array?

How can I display values in a two dimensional array?

How do we sort an array of names taken from a text file, displaying only unique names?

how do i send the information from one page to another page using post method.



Custom Search