$this variable help.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Phil Latio

    $this variable help.

    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


  • Erwin Moller

    #2
    Re: $this variable help.

    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:


    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

    Comment

    • Buddy

      #3
      Re: $this variable help.

      A book that I recommend is: PHP 5 Objects, Patterns, and Practice by
      Matt Zandstra published by Apress (A expert's Voice in Open Source)

      It covers all the new PHP 5 OOP. It's also a fun read.

      Erwin Moller wrote:
      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:

      >
      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

      Comment

      Working...