<?php class Foo { public $a; function bar() { return $this->a ?: $this->a = 'b'; } } $foo = new Foo(); $response = $foo->bar(); var_dump($response, $foo);
You have javascript disabled. You will not be able to edit any code.