RE: [PHP] String Replace

From: Date: Fri, 14 Mar 2003 11:34:17 +0000
Subject: RE: [PHP] String Replace
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-139700@lists.php.net to get a copy of this message
There is many functions that can do it. str_replace() is the fastest on thisone. preg_match() comes on second position, and after that comes ereg_replace(). But if you need to do harder replacing, preg_match() is the one to use, imo. Niklas -----Original Message----- From: Awlad Hussain [mailto:php@sheridan-phoenix.com] Sent: 14. maaliskuuta 2003 13:26 To: php-general@lists.php.net Subject: [PHP] String Replace I have a string with underscore in the middle.. like "This_That" which function do i use to replace the _ with space? eg to "This That" the string is in a variable.. I know its really simple but just don't know which function to use. any suggestion? -awlad ########################################### This message has been scanned by F-Secure Anti-Virus for Internet Mail. For more information, connect to http://www.F-Secure.com/

« previous php.general (#139700) next »