[thelist] simple PHP problem

Liz Lawson lizlawson at charitycards.co.uk
Thu Oct 5 04:02:42 CDT 2000

>To clarify: If i was to call two paragraphs of text
>from the same field in my Mysql table, that were
>seperated by a double space, would it possible with
>PHP, to dynamicaly add <P> tags to the begining of
>each paragraph so that when the brower reads it the
>text retains it's orginal formating instead of being
>outputed to the browser as one long piece of text.

The str_replace or preg_replace functions do what you want, (although as has
been pointed out it may be simpler just to use <pre></pre>)



More information about the thelist mailing list