Search code examples
phparraysvar-dump

unreadable output with var_dump on xampp windows


I'm having some issue with var_dump.i'm using xampp 1.7.3 on windows.

I think in previous version i could output a variable with var_dump without print "<pre>" print "</pre>" firebug is not installed on my firefox and i'm not using xdebug.

Formally i have even red colored and nicely formatted output.Now it's completly unreadable.Can anyonw give me a tips n how to correct that.And html_errors is on from what i saw in php_info.thanks for reading this.


Solution

  • You were using Xdebug before; you're not using it now. Without it, there are no colors, and there are no HTML line breaks (use nl2br, change the Content-type header to text/plain or put the output in a <pre> block).

    See the "Variable Display Features" on the manual of Xdebug.