Re: print_r's feature
| From: | Monte Ohrt | Date: | Thu, 25 Jul 2002 13:35:09 +0000 |
| Subject: | Re: print_r's feature | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-86190@lists.php.net to get a copy of this message | ||
Should it be a boolean value, or something a bit more descriptive/flexible?
print_r($foo,'html');
print_r($foo,'xml');
$output = print_r($foo,'return');
Monte
Denis Arh wrote:
Yeah, i know this... but... ok... ;) wouldn't be simplier like this: print_r($foo, true); i know how to do it, it was just a suggestion... "Marco Glatz" <MarcoGlatz@Dose.com> wrote in message news:C1A8D5312515D411908C0050BAB3C06F0FA1A0@GATEWAY...How about adding an extra second parameter to print_r function, that would enable HTML output, with <br />s and maybe bold values?how about this ? <pre> <?php print_r($foo); ?> </pre> mg