* Thus wrote Chris Shiflett ([EMAIL PROTECTED]):
> --- 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>';

hmmm.. that should work. I was kinda under the impression that
print_r returns an array with that second paramter passed.  

> 
> Hope that helps.

Thanks


Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to