"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 pass "joeBob" to the class you can do so as the parameter of one of
the methods. And my guess is that you already know, but if you want to
refer to a method or property of a class from within the class, you do using
syntax like $this->property_here.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]