Re: Anybody got a little spare time to help me out with a little OOP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 1-Jun-08, at 8:15 AM, Ryan S wrote:
Thanks for replying, but how and where do I put that into the script? all that "this->" stuff is confusing....


Tony Marsten's links seem to be very good, but let me offer you a simpler introduction. Once you can think in an OOP fashion, procedural-/functional-based programming seems archaic.

Object-oriented programming is all about thinking about everything as "objects".... people, cars, flowers, dogs, pictures, food items... whatever your application manages. You model up these real-world objects using simple PHP syntax.

Objects can refer to themselves (or their inheritance) using $this->, which means "me" or "mine". When using $this->, the object is referring to a property or method (aka function) within itself or inherited from one of its parents, whichever comes first.


~Ted



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux