So you know how Drupal has functions in modules like Devel that allow you to output arrays in a nice format like dsm($array)
or krumo($array)
… Does WordPress have an equivalent or a nice way of displaying print_r($array)
?

6 s
I created a Kint plugin that works really well. I also integrates with the Debug Bar plugin. You can download it at: http://wordpress.org/extend/plugins/kint-debugger/
There are a few functions to help you out with WordPress specific globals:
dump_wp_query()
dump_wp()
dump_post()
For printing arrays in a styled, collapsible format you would do the following.
$foo_bar = array(
'foo' => 'bar',
'bar' => 'oof',
'rab' => 'foo'
);
d($foo_bar); //Styled
s($foo_bar); //Un-styled