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 do I add to the end of an array and know how large the array is?

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

How do I find out if a value is already in an array?

How do I generate an associative array like Jan => 10, Feb =>20 etc from a mysql table of 2 columns, month and val ?

I want to invert my array, can I do this?



Custom Search