RE: [PHP] jblanchard@pocket.com

From: Date: Tue, 11 Apr 2006 17:54:37 +0000
Subject: RE: [PHP] jblanchard@pocket.com
Groups: php.general 
Request: Send a blank email to php-general+get-233777@lists.php.net to get a copy of this message
Hey, First, sorry about the subject line, my mail program is giving me a bit of a problem so had to use another.. -------------------------- [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;------------------------- Nope, that didnt work either so I manually re-entered each line (record) and for some reason its working now Thanks for your time and help. Cheers!

« previous php.general (#233777) next »