Re: \n's

From: Date: Tue, 30 Oct 2001 15:36:38 +0000
Subject: Re: \n's
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-72883@lists.php.net to get a copy of this message
Remember, those functions have return values. Gotta assign the return to a variable! $variable = [replacement_function]($args ... ); They don't change the value of the variable in the argument list, they take that value and put a new value in a new memory space. Unfortunately, they don't throw an error when you don't assign the return to a variable so it can often be hard to catch. Mike "Speedboy" <speedboy@nomicrosoft.org> wrote in message news:Pine.LNX.4.21.0110301142540.4408-100000@bedrock.evark.com... > > quick problem... I don't seem to be able to strip \n's out of a string > > of text: > > str_replace("\n", "", $line); > >

« previous php.general (#72883) next »