Here's my first post
class A {
var $x;
var $y;
}
$a = new A;
$a->x = 10;
$a->y = 20;
echo "x=". $a->x;
echo "y=". $a->y;
and here's my second post
class A {
var $x;
var $y;
}
$a = new A;
$a->$x = 10;
$a->$y = 20;
echo "x=". $a->$x;
echo "y=". $a->$y;
If you noticed i used two different version but the output is the same. I'll be back for this, i'm busy right now