<?php error_reporting(E_NONE); class a { static $test = 10; function afunction() { echo self::test; } } $test = new a(); echo $test->afunction();
You have javascript disabled. You will not be able to edit any code.