Hi, I'm finding problems using classes in php4 (I'm used to strongly typed languages - C++ and Java). Here's a piece of code that roughly demonstrates what I'm trying to do: [code] class A { function doItToA($aString) { echo($aString); } } class B { var $a; function B(&$a) { $this->a = $a; } function doItToB($aString) { $this->a->doItToB($aString); } } // ... $a = &new A(); $b = new B($a); $b->doItToB("random text here"); [/code] Now the problem is that the parameter, "random text here", that I pass into the call $b->doItToB("random text here") doesn't appear to make it's way through to doItToA($aString) - the text "random text here" isn't echoed as I would expect it to. I haven't seen any examples of objects (such as the instance of B, above) being used as member attributes within classes. I expect I don't have a full grasp of on way classes work in PHP. Any guidance on what the problem might would be much appreciated. Thanks, Peeper.