<?php class Foo { public $bar = 'A'; public function doSomething() { $this->bar = 'B'; yield; } } $foo = new Foo(); echo $foo->bar . PHP_EOL; print_r($foo->doSomething()); echo $foo->bar . PHP_EOL;
You have javascript disabled. You will not be able to edit any code.