> > $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
"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
I think I already know the answer to this question, but I just
want to make certain.
Is there a way that a class can know the name of the variable
used to instantiate it?
So if you do:
$joeBob = new myClass();
"myClass" can somehow know that "joeBob" is the name of
it's instance?
I'm thinking
3 matches
Mail list logo