Peter wrote: > Code string may be something like: > $codeString = "if ($param1->someMethods($param2)) {return > $param1->{someData};} else {return $param1->{someData};}"; Try ' instead of " above. Cheers f.