[thelist] simple string manipulation...

Lischke, Katherine L. klischke at logicon.com
Wed May 9 15:33:25 CDT 2001


At 09:00 AM 5/9/2001 -1000, you wrote:
>I have a field in a database that is going to hold text. Specifically: 2-3
>paragraphs of text.
>
>I need to come up with a way to output that text into <p> tags (using
>PHP)...but I'm not sure how to approach it:

Are you married to the idea of the <p> tag specifically? Check out the 
nl2br function.

http://php3.com/manual/en/function.nl2br.php

Kathy




More information about the thelist mailing list