Re: str_replace to ignore commas

From: Date: Tue, 06 Jan 2004 15:56:18 +0000
Subject: Re: str_replace to ignore commas
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-173859@lists.php.net to get a copy of this message
> Nowhere in your replacement array do you check for, or remove, > carriage returns. > Add this \n to it: > $replacement = array("\"", "\,", ".", "!", > "?", "\n"); > Your exploded array should now be correct. When I do this I get some really unexpected results. Almost everything comes up bold.

« previous php.general (#173859) next »