fsn812 29 Junior Poster in Training

I have never used TPL, but somewhere (on another forum I think) I read:

TPL files are text files filled with blocks of html that are included in their respective spots.

I found one tutorial that may be kind of close to what you are looking for.

It certainly was difficult to find much information about TPL (NOT 'Terminal' or 'Table producing' language). Hopefully someone else will be able to shed a little more light on the subject.

fsn812 29 Junior Poster in Training

That is certainly one way of doing it. The reason it was written in the class/function method OO style was simply to provide a method for the user to become accustomed to having the functionality expanded in case they need to use it again (example: large enterprise level database interaction)

But you have no argument here, wrapping it around the variable itself will work just fine for this user's intended purpose (assuming there will be no other input data than $abcd that will need replacement ;) )

fsn812 29 Junior Poster in Training

This should work:

class replace_this {

public function replace($replace,$replacewith,$inme)
{
$doit = str_replace ("$replace", "$replacewith", $inme);
print("$doit");
}
}

$rp = new replace_this();
$rp->replace(" ",'',"This is text");