striping \n or \r

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

 



Hello list

Does anybody knows how to strip new lines (\n) or \r from a string?
I try 
$lead=str_replace('(0x0D)',' ',str_replace('(0x0A)',' ',$lead));

or 
$lead=str_replace('\n',' ',str_replace('\r',' ',$lead));

with no results

Thank you
Nikos

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux