RE: [PHP] String replace[Scanned]

From: Date: Fri, 11 Apr 2003 11:50:01 +0000
Subject: RE: [PHP] String replace[Scanned]
Groups: php.general 
Request: Send a blank email to php-general+get-143482@lists.php.net to get a copy of this message
Try the following: http://www.php.net/manual/en/function.ereg-replace.php Michael Egan Programmer DDI 0151 285 4064 Fax 0151 285 4063 email: megan@3tc.org.uk web page: www.3tc4u.net -=--=--=--=--=--=--=--=--=--=--=--=--=--=- DISCLAIMER: The information in this e-mail may be confidential or privileged. It is intended for the addressee only. If you are not the intended recipient, please delete this e-mail immediately. Whilst we scan all our emails for viruses we cannot be held responsible for traffic outside of 3TC. We recommend that you scan all incoming messages as a matter of course. The statements and opinions expressed in this message are those of the author and do not necessarily reflect those of 3TC or SNIP. 3TC does not take any responsibility for the views of the author. We protect our systems with Sophos Anti-virus - www.sophos.com -=--=--=--=--=--=--=--=--=--=--=--=--=--=-- -----Original Message----- From: Uma Shankari T. [mailto:umashankari@lantana.tenet.res.in] Sent: 11 April 2003 11:36 To: PHP Subject: [PHP] String replace[Scanned] Hello, Can any one please tell me how to replace a matched string in a array with another variable.. suppose..i am having the sentence in the array like this.. $Question= "Queen is a Good girl"; $Quest=explode(" ",$Question); i need to replace the "girl" string with "actor" in the appropriate place..how do i go about with this.. Thanks & Regards, Uma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#143482) next »