Unnamed
public php v1 · immutable<?phpclass Test { // Declare a variable as normal var $foo='$foo <b>has</b> been declared'; // Declare the magic function for getting properties function __get($name,&$value) { $value="$$name has not been declared"; return true; }} // Declare the class as overloadedoverload ("Test"); $test= new Test; // Get the value of the declared variableecho ($test->foo."<br />");?>