<?php class Test { function sayHello() { return 'Hello, ' . $this->val . '!'; } } $c = new Test; $c->val = 'Mr. Duck'; var_dump($c->sayHello());
You have javascript disabled. You will not be able to edit any code.