Re: remove a line from a text list

From: Date: Wed, 05 Mar 2003 21:43:32 +0000
Subject: Re: remove a line from a text list
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138369@lists.php.net to get a copy of this message
"Note: implode() can, for historical reasons, accept its parameters in either order. For consistency with explode(), however, it may be less confusing to use the documented order of arguments." Chris Wesley wrote:
The above line: I'm assuming you want to collapse $recordsarray into a sting, with the elements of $recordsarray separated by a null char. Well, you told implode() to collapse a null char into a string with the elements of null char separated by $recordsarray ... inverted the arguments to implode(). I have no idea why an error isn't raised instead of kind-of working, but anywho .... Try switching the arguments around in the call to implode(), to: $lines = implode('',$recordsarray); http://www.php.net/manual/en/function.implode.php If that doesn't correct the problem you're experiencing, let us know. I have other ideas for you, but they may not be necessary if that solves it. HTH, ~Chris
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#138369) next »