* Thus wrote skate ([EMAIL PROTECTED]):
> > 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?
> >
> 
> if it's just used for debugging, can't you just use the <pre> tags around
> it? i mean, it's no big deal, and you don't really need it formatted to look
> pretty.
> 
> that's how i use it anyway...

True, but the pre tags dont stop the browser from rendering html
code. I dont have any problems wrapping "<pre>" around the print_r.

$var = "<img src=\"/image.jpg\">"
print_r($var);

Yields an image not the actual string in $var.


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