Re: print_r question

From: Date: Fri, 24 Aug 2001 22:44:32 +0000
Subject: Re: print_r question
References: 1  Groups: php.lang 
Request: Send a blank email to php-lang+get-206@lists.php.net to get a copy of this message
"James" <james@scgdev.com> wrote in message news:20010823213310.63797.qmail@pb1.pair.com... > 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. It isn't. Try php-general. This one is for language-specification of PHP... (btw: the newlines are visible in the source of your output, but browsers ignore newlines. Unless within <pre>...</pre>.) > > Thanx, > James > >

« previous php.lang (#206) next »