|
Posted by Erwin Moller on 11/20/06 08:23
Phil Latio wrote:
> Please can someone point me to where the $this variable is discussed in
> the PHP manual. Done a search of the online manual and the results don't
> cover it.
>
> I use it in ignorance and would like to more. Doesn't even have to be
> official PHP sources as long it's accurate.
>
> Many thanks.
>
> Cheers
>
> Phil
Hi,
Start here:
http://nl3.php.net/manual/en/ref.classobj.php
In short: $this references to the instantion of a class.
If that doesn't make too much sense, first read through the chapters on
www.php.net.
If you want to REALLY learn OOP (Object Oriented Programming) you must find
a good book. (You can ask in here for tips, or browse though the group
because that question is asked many times before.)
Please note that PHP5 has better support for OOP than PHP4 had.
Regards,
Erwin Moller
Navigation:
[Reply to this message]
|