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:[EMAIL PROTECTED] Sent: 14. maaliskuuta 2003 13:26 To: [EMAIL PROTECTED] 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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php