PHP Questions Home
Categories
Arrays
Files
Forms
Functions
Images
MySQL
Numbers
Others
Strings
Website
Unanswered

PHP Functions
PHP Functions

More PHP
Top Questions
Ask a Question
Sponsors

sponsor ad
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.

Ask a Question / Comment on this Question and Answer >>>

More arrays PHP Questions

I want to invert my array, can I do this?
How do I turn an array into a string?
How do I pick a random value from an array?
How do I return all the values in an array?
How do I reverse sort the members of an array?