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

what are php array functions?

what is the return value of array_unique()?

hi, i am querying the DB as follows: $result=mysql_query("SELECT name,items FROM mytable WHERE user_id='$id'"); now,i want to create an array to insert the values that are as a result of this query e'g let's say this is the resultant data: n

How can I sort a multi-dimensional array?

How can I reset an array in PHP?



Custom Search