PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
When you say that you want to replace the text, do you mean you want it to be dynamic as in a variable or do you just want to straight search a file and replace the text with different static text?
If you want the text to be dynamic (that is change depending on user requests) then you could replace the text with a php variable e.g $text, and define $text depending on some condition.
e.g:
<?php
if ($_GET["request"] == "this")
{
$text = "add this text";
}