<?php
class A {
var $x;
var $y;
}
$a = new A;
$a->$x = 10;
$a->$y = 20;
echo "x=". $a->$x;
echo "y=". $a->$y;
?>
take a look at the program code carefully and run it,
and you'll get these x=20 and y=20.
i'm not so sure but don't you think the output must be x=10 and y=20?