RE: jblanchard@xxxxxxxxxx

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

 



[snip]
Let's try an experiment, do a string replace to get rid of the newline
and report back what happens.------------------------------I did a
this:$flick_name  = rtrim($row[5]);But no joy.... if I do a string
replace
how do I specify the newline in the needle parameter of the
str_replace?I'm
pretty sure I have to use chr() but not sure how...am looking at the
ascii
table now...Thanks!
[/snip]

http://www.php.net/str_replace

$new = str_replace("\n", " ", $row[5]);

echo $new;

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



[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