str_replace help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi folks,
 
In ASP, I would commonly replace string line feeds for HTML output like
this:
 
Var = replace(value,vbcrlf,"<br>")
 
In PHP, the following doesn't seem to work:
$var = str_replace(chr(13),"\n",$value)
 
Neither does:
$var = str_replace(chr(10),"\n",$value)
 
What am I doing wrong?
 
Thanks!

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux