PHP equivalent of vbcrlf

Hey,

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

[code]

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

Any help is appreciated.

Thanks,
Alastair Q

Maybe you’re looking for nl2br()?

Sponsor our Newsletter | Privacy Policy | Terms of Service