To be honest, I just use print_r and if I want to see it better fomatted I hit Ctrl-U (I'm using Firefox) and it all shows very nicely. I guess in IE you could select View | Source....
Main Topics
Browse All TopicsDoes anyone else find themselves having to use pre tags to view the returned value of a print_r function call?
I currently type:
die("<pre>".print_r($_POST
I'd like to type:
die(print_r($_POST));
Please exuse me if I'm missing something here, is there a different array output function that returns the preformatted text?
Thank You
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
well, seeing as how their don't appear to be any further suggestions, I'll close this one out - A for effort.
@bportlock you got the lions share of the points because I've been using your solution, though I may attempt some sort of super global function file for all my projects at some point.
Regards,
Jesse
Business Accounts
Answer for Membership
by: ray-solomonPosted on 2007-09-16 at 21:32:53ID: 19902926
You could always make up your own function like so that wraps the tags around the output:
53634654-n otexists.c om'
$array = array(
'http://www.google.com',
'http://www.yahoo.com',
'http://www.msn.com',
'http://www.excite.com',
'http://www.aurlthatdoes34
);
function prints_r($input)
{
return '<pre>'.print_r($input, true).'</pre>';
}
die(prints_r($array));