I'm new to PHP and come from and ASP background...
I want to replace line feeds in user submited textareas with <br> or
<p> or <div>. In ASP I do this to replace carriage return/line feeds
with <p> in a record of a recordset...
Replace(rsWhate ver("fld_whatev er_field"), vbCrLf, "<p>")
I don't know how to accomplish this in PHP. I know I have to use
str_replace() but I'm confused by the syntax.
Thanks for the help!
I want to replace line feeds in user submited textareas with <br> or
<p> or <div>. In ASP I do this to replace carriage return/line feeds
with <p> in a record of a recordset...
Replace(rsWhate ver("fld_whatev er_field"), vbCrLf, "<p>")
I don't know how to accomplish this in PHP. I know I have to use
str_replace() but I'm confused by the syntax.
Thanks for the help!
Comment