RE: [PHP] jblanchard@pocket.com

From: Date: Tue, 11 Apr 2006 17:22:35 +0000
Subject: RE: [PHP] jblanchard@pocket.com
Groups: php.general 
Request: Send a blank email to php-general+get-233776@lists.php.net to get a copy of this message
[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;

« previous php.general (#233776) next »