<?php class TestClass2 { private $test_var="value"; public function getVar(){ global $test_var; return $test_var; } } $myclass = new TestClass2(); var_dump($myclass::getVar());
You have javascript disabled. You will not be able to edit any code.