Hey guys,

Any idea how I would replace all occurances of \n with <br> in a string?

i.e.

$mystring="i went to the shops\nthen i went to the store\n"

becomes

$mystring="i went to the shops<br>then i went to the store<br>"

any tips would be appreciated.

gp

    sorry gordon, I promise to search first in future.

    gp

      Write a Reply...