mAX: OOP Anfängerproblem

Beitrag lesen

Hi,

warum bekomme ich hier nicht "hallo" ausgegeben????

<?
class Foo {

var $query;

function Foo($query) {
  $this->$query = $query;
 }

function test() {
  return $this->$query;
 }
}

$foo1 = new Foo("hallo");
echo $foo1->test();

?>

ich raffs einfach net. wo ist der fehler?????

mfg
mAX