<?php class Foobar { protected $foo; public function getFoo() { return $this->foo; } } $foo = new Foobar(); echo str_replace('Foobar', $foo->getFoo(), 'Foobar');
You have javascript disabled. You will not be able to edit any code.