All pastes #717842 Raw Edit

Unnamed

public php v1 · immutable
#717842 ·published 2007-09-27 22:16 UTC
rendered paste body
<?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 />");?>