note 18200 deleted from function.str-replace by philip

From: Date: Mon, 04 Feb 2002 12:54:41 +0000
Subject: note 18200 deleted from function.str-replace by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-26224@lists.php.net to get a copy of this message
Before finding this function, to replace 'foo' with 'bar' in a string I have been doing... join( 'bar', explode('foo',$string) ) I have no idea how this compares speedwise, I guess str-replace should be faster. If anyone cares to test it I'd be interested to know.

« previous php.notes (#26224) next »