<?php class A { static $b = 0; public function __construct() { self::$b = 'hot dogs'; } public function getB() { return $this->$b; } } $a = new A; var_dump($a->getB());
You have javascript disabled. You will not be able to edit any code.