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
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
2 matches
Mail list logo