should the following code work in theory?
Code: Select all
class out {
var $output = "yay";
function put() {
echo $this->$output;
}
}
class test {
function testme() {
global $out;
$out->put();
}
}
$out = new out;
$test = new test;
$test->testme();thanks
j