RE: [PHP] Name of Class' instance

2001-02-07 Thread Boget, Chris
> > $joeBob = new myClass(); > > "myClass" can somehow know that "joeBob" is the name of > > it's instance? > > I'm thinking 'no', but would like verification. > I'm not aware of a way to do so. I'm curious why you'd want > to? If you want to pass "joeBob" to the class you can do so as the > p

Re: [PHP] Name of Class' instance

2001-02-06 Thread Steve Werby
"Boget, Chris" <[EMAIL PROTECTED]> wrote: > So if you do: > > $joeBob = new myClass(); > > "myClass" can somehow know that "joeBob" is the name of > it's instance? > > I'm thinking 'no', but would like verification. I'm not aware of a way to do so. I'm curious why you'd want to? If you want to