I'm looking for a (painless?) way to echo or otherwise log a large, multidimensional array when I don't know if a given value will be an array, or if those values will be arrays, etc. etc. forever. It could be ten or fifteen levels deep, with string and / or array values and manually nesting foreach loops seems inefficient and wrong.
var_dump is too verbose and too difficult to decipher for my purposes.
Thoughts?
https://stackoverflow.com/questions/66620901/php-pretty-print-key-value-of-large-unknown-multi-dimentional-array March 14, 2021 at 11:47AM
没有评论:
发表评论