(this thread has been moved to 'Coding' - sorry for the accidental mis-post! -Bob)
What's the best way to get variables/arrays/objects into class instances?
Should I pass them by assigning them to class variables directly?
$foo = &new Class;
$foo->var1 = 'the monkey';
$foo->var2 = &$local_variable;
$bar = &$foo->returnStuff();
or should I pass the variables in a class method call?
$foo = &new Class;
$var1 = 'the monkey';
$var2 = &$local_variable;
$bar = &$foo->returnStuff($var1, $var2);
Or is there any difference?