You cannot nest classes in PHP 5 or PHP 6.
Why are you wanting to?
-Will
On Wed, Apr 16, 2008 at 10:36 AM, Roberto Mello <[EMAIL PROTECTED]>
wrote:
> But the code posted by Craig doesn't give you a function pointer.
> Database.xmlAdapter will just be an instance of XMLAdapter, not a
> function pointer. Or were you referring to something else?
>
> Roberto
>
> On Wed, Apr 16, 2008 at 10:04 AM, Nathan Lane <[EMAIL PROTECTED]>
> wrote:
> > That might be a possibility in PHP - a function pointer or delegate like
> in
> > JavaScript. I'll try it out.
> >
> >
> > On Wed, Apr 16, 2008 at 10:02 AM, Craig Jackson <[EMAIL PROTECTED]>
> wrote:
> > >
> > > class Database {
> > > private $xmlAdapter;
> > >
> > > function newXmlAdapter() {
> > > $this->xmlAdapter = new XMLAdapter();
> > > }
> > >
> > > }
> > >
> > > class XMLAdapter {
> > >
> > > }
>
> _______________________________________________
>
> UPHPU mailing list
> [email protected]
> http://uphpu.org/mailman/listinfo/uphpu
> IRC: #uphpu on irc.freenode.net
>
_______________________________________________
UPHPU mailing list
[email protected]
http://uphpu.org/mailman/listinfo/uphpu
IRC: #uphpu on irc.freenode.net