You have to answer this question before its comments can be revealed, this way we won’t spoil the answer for you.
PHP and MySQL
If you want to change every occurrence of “Mary” to “Maria” in a variable, you would:
Split the string at “Mary”, the join it with “Maria”.
Explode the string at “Mary”, then Implode it with “Maria”.