Hi, Can someone advise on the following. class class_y { function test() { return "test"; } } class class_x { function x { $n = new $y; } function z { $n->test(); } } I need the object of class_y available to the other objects of classx but I cant figure out how I do this. Any ideas? Regards, Steve Maher
- Re: [PHP] Making a object from one class available to a... Stephen Maher
- Re: [PHP] Making a object from one class available... Christian Reiniger
- Re: [PHP] Making a object from one class available... szii
- [PHP] include files David VanHorn
- Re: [PHP] include files Steve Werby
- RE: [PHP] include files Brian V Bonini
- RE: [PHP] include files David VanHorn
- RE: [PHP] include files Brian V Bonini
- Re: [PHP] include files Christian Reiniger