Re: [PHP] print_r question

2001-08-23 Thread Philip Olson
About the simplest way to accomplish what you want is : \newlines don't show up in browser but will in the source, check your html source and see how pretty it is (full of newlines). Here's an example : $string = "a\nb\nc\n"; print $string;(newlines in source) print nl2br($st

Re: [PHP] print_r question

2001-08-23 Thread mike cullerton
one thing i do is put print_r inside . function my_print_r($obj) { ?> 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 , instead. > > The manual examples use \n and the output sh

[PHP] print_r question

2001-08-23 Thread james
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 , instead. The manual examples use \n and the output shows that newlines are created. Am I missing something? Newbie, here. Hope this is the