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

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

I am not interested in the values in the arrays, how can I discard them?

How do I pick a random value from an array?

How do you remove duplicate values from an array?

How do I reverse sort an array by key?

I'm shuffeling through numbers range(1, 10). Can I eval resulting random numbers and convert to appropriate text? 1 = username1, 2 = username2...etc?



Custom Search