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 [EMAIL PROTECTED] 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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to