In article <[EMAIL PROTECTED]>,
 [EMAIL PROTECTED] (Venkateshwar B) wrote:

> I have
> tried to use "str_replace" and replace "\n" by "". But it does'nt give
> me the desired result of limiting text to single line .

$nobreaks=preg_replace("/[\r\n]+/"," ",$hasbreaks);

<http://php.net/preg-replace>

-- 
CC

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

Reply via email to