Is there a php.ini setting (or some other setting) that will cause print_r and var_dump output to be automatically formatted as though I had explicitly placed a <pre> tag before such an output statement?
Is there a php.ini setting (or some other setting) that will cause print_r and
Share
I don’t know of any way to do this within PHP but I know xdebug replaces PHP’s normal var_dump and it looks pretty awesome.
Here’s an example
results in