Hey,
I need to do some substitutions inside a class-function, where I have a line reading sth. like this:
preg_replace("/{(\w+)}/e", "$this->\1", $this->text);
$this->foo is "bar", so "{foo}" in $this->text should be replaced with "bar".
Unfourtunately, I only get a parse error saying "parse error, expecting `T_STRING' in ..."
What the hell??
Can anybody help me with that or suggest any workarounds?
Thanks!!
tom