PHP - Convert a multidimensional array to string?
php
Solution
`print_r`, `var_dump` or `var_export` are good candidates. When writing a REST service, you might also want to look at `json_encode`.
Problem
I'm working on a small ajax application and need to see if the values being generated in the background are what is expected. The value returned by the quest can be quite a complex multidimensional array, is there a way to convert this into a string so that it can be shown with alert? Is there any other way of seeing these values? Any advice appreciated. Thanks.