How do i print an Array readable? print_r($array); and var_dump($array); both produce some very ugly clutter of that $array. Ok it is what it says, it prints that array, but i'd like to have some well formated print of that array, how do i do that?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
Or to a better yet performance, use xDebug with html_colors = on. html_colors can be found on php.ini file. xdebug is from http://xdebug.org/download.php
With xDebug and Colors you don't need to use
it's beautiful as-is.