has 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 overloaded overload ("Test"); $test= new Test; // Get the value of the declared variable echo ($test->foo."
"); ?>