PHP equivalent of vbcrlf


I have recently changed from ASP and I am having trouble that when I call text from a database which has been collected from a textarea, I can’t use the following code to change vbcrlf to


<?php $newscontent = str_replace ('vbcrlf', '
', $row['content'] ); echo $newscontent ?>[/code]

Any help is appreciated.

Alastair Q

Maybe you’re looking for nl2br()?

Sponsor our Newsletter | Privacy Policy | Terms of Service