syntax? how to declare a member of a class which is itself a class

syntax? how to declare a member of a class which is itself a class

am 23.08.2007 17:09:45 von D_a_n_i_e_l

how to declare a member of a class which is itself an object?

class cA
{
private $blah;
public function foo()
{
return blah;
}
}

class cB
{
private cA $a; // I want this to be of type class A
}