Changing the style of var_dump

Is it possible to change the style of var_dump in some way, such as bolding an array key, etc.?
Of course, I understand what can be done with javascript, but I want to know if this is possible in php, maybe it can be done easier in it.


Answer 1, authority 100%

The easiest way to do this is with xdebug.overload_var_dump.

By default Xdebug overloads var_dump()
with its own improved version for
display variables when the
html_errors php.ini setting is set to
1. In case you do not want that, you can set this setting to 0, but check
first if it’s not smarter to turn off
html_errors.


Answer 2

Nope, you can’t.

You can write your own using while or foreach. 🙂 well, write the output with styles