RE: [PHP] ereg et all
| From: | Rick Emery | Date: | Thu, 31 Jan 2002 21:47:33 +0000 |
| Subject: | RE: [PHP] ereg et all | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-82996@lists.php.net to get a copy of this message | ||
try: eregi_replace("this","that","This equals this equals tHis");
-----Original Message-----
From: Edward van Bilderbeek - Bean IT [mailto:edward@bean-it.nl]
Sent: Thursday, January 31, 2002 3:40 PM
To: php-general@lists.php.net
Subject: [PHP] ereg et all
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net