--- Curt Zirzow <[EMAIL PROTECTED]> wrote: > Since print_r is usually used for debugging, it would be nice that > php does this for you. Any comments on this before i throw the > idea to the php-dev list?
As of 4.3.0, you can store the output of print_r() in a variable, so that allows developers to do whatever they want. For example, you can apply htmlentities() with something like the following: echo '<pre>' . htmlentities(print_r($_POST, 1)) . '</pre>'; Hope that helps. Chris ===== Become a better Web developer with the HTTP Developer's Handbook http://httphandbook.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php