Re: print_r question

From: Date: Thu, 23 Aug 2001 21:18:34 +0000
Subject: Re: print_r question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-64176@lists.php.net to get a copy of this message
one thing i do is put print_r inside <pre> </pre>. function my_print_r($obj) { ?><pre><? print_r($obj); ?></pre><? } does the output from print_r look fine if you view source? mike on 8/23/01 2:58 PM, james at james@scgdev.com wrote: > When I print an array out with print_r (php 4.06 on IIS 4.0) it does not > print newlines even if newlines are embedded in the array element. I must > embed <br>, instead. > > The manual examples use \n and the output shows that newlines are created. > > Am I missing something? > > Newbie, here. Hope this is the right thread for such question. > > Thanx, > James > > > > -- mike cullerton

« previous php.general (#64176) next »