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

How can I sort an array keeping the correlation between the index and value?

how sorting an array with keys?

How do I remove the first element from an array?

how can you reset an array in PHP

How do I turn an array into a string?



Custom Search