String replace
| From: | Uma Shankari T. | Date: | Fri, 11 Apr 2003 10:36:09 +0000 |
| Subject: | String replace | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-143478@lists.php.net to get a copy of this message | ||
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