<?php class a { public $var; function test1() { throw new Exception('...'); } function test2() { echo $this->var; } } $a = new a; $a->var = 'hello, world!'; try { $a->test1(); } catch (Exception $e) { } $a->test2();
You have javascript disabled. You will not be able to edit any code.