Greetings all
Here's the context.
I've got a class, lets call it class A, which was build to include various methods for MsSQL. Class 'B' needs class 'A', to parse data returned from MsSQL queries, and to manipulate them.
In my current code, im am doing this :
$a = new A;
$b = new B;
and in the constructor of class B :
function B()
{
global $a;
$this->a = $a;
}
This works fine, but is this the right thing to do ?
Thanks.