On Sun, August 26, 2007 9:36 am, Ron Piggott wrote:
>
> Is there a PHP command that turns text into HTML?
>
> EXAMPLE:
>
> "before"
>
> Hi.
>
> How are you doing?
>
> "after"
>
> Hi.
>
> How are you doing?
http://php.net/nl2br
You could also do:
echo "", str_replace("\n", "\n", $text), "\n";
Ano
:06 -0400
> Subject: [PHP] text to HTML
>
>
> Is there a PHP command that turns text into HTML?
>
> EXAMPLE:
>
> "before"
>
> Hi.
>
> How are you doing?
>
> "after"
>
> Hi.
>
> How are you doing?
>
Is there a PHP command that turns text into HTML?
EXAMPLE:
"before"
Hi.
How are you doing?
"after"
Hi.
How are you doing?
3 matches
Mail list logo