ereg et all

From: Date: Thu, 31 Jan 2002 21:40:07 +0000
Subject: ereg et all
Groups: php.general 
Request: Send a blank email to php-general+get-82995@lists.php.net to get a copy of this message
hi, is there a simple way to replace an occurence of a string, into another, maintaing capital positions... Like: $str = "This equals this equals tHis"; and I wanna replace all occurences of "this" in "that", that the result will be: $str = "That equals that equals That"; Edward

« previous php.general (#82995) next »