Posted by Colin McKinnon on 01/04/06 02:37
Carramba wrote:
>
> Iam wondering how can I include file in class? is it possible?
> is it possible to create object inside another object? for instance if I
> create mysqli connection object inside another class is that doible? or
> one should pass created objekt as parameter to another objekt?
>
Yes, but if you'd bothered to try it out you'd have found that although you
can include within a class/function/condition/loop the included code is
included in the global scope.
I suspect it may be possible to achieve the result you want but it's not
overly clear from your post what that is.
C.
Navigation:
[Reply to this message]
|