if you create a variable inside of a function then that variable is only accessable inside that function it's a scoping rule of PHP. I think you're trying to do something like this:
<?php
class ClassA {
var $one,$two,$three;
}
class ClassB {
var $classA;
function make_classa_instance($one,$two,$this) {
$this->classA = new ClassA();
$this->classA->one = $one;
$this->classA->two = $two;
$this->classA->three = $three;
}
}
?>
Notice that I said $this->classA = ... and not $classA = ... what this does is it sets a class variable so that this instance will now be available from anywhere in the class.