On Sat, 2004-05-15 at 06:24, Richard Shaffer wrote:
> class test {
> var $a;
> var $b = "goodbye";
> function c($arg) {
> $this->$a = $arg;
> echo "a = " . $this->$a . "\n";
> echo "b = " . $this->$b . "\n";
> }
> }
$this->$a should be $this->a
same with '$b': $this->$b should
I am sure this is something I'm doing wrong, but I just can't see it. I
have the following in my test.php file:
$a = $arg;
echo "a = " . $this->$a . "\n";
echo "b = " . $this->$b . "\n";
}
}
$d = new test;
$d->c("hello");
?>
When I load the page, I expect to see the following out
2 matches
Mail list logo