Jump to content

Hi all, new here, from Fife Scotland


GrahamMcGregor

Recommended Posts

Just wanted to say a quick hi to you all.

 

I have a fairly good grasp of procedural scripting with php but have been struggling with the object oriented side of things for longer than i care to remember. Time to get to grips with it and found a good tutorial here so thought i would join.

 

Cheers all

Graham

Link to comment
Share on other sites

Greetings, and good luck with OOP. 

 

One way to think about an object is as a struct/record, with an element that stores an array of pointers to functions.  That is the basic implementation for most languages AFAIK.

 

PHP has single inheritance, interfaces, support for scoping (public, private, protected) and some new tricks like traits.  If you can get the knack of static methods (imagine one magic object that the os creates for you) vs dynamic instantiation (ie.  Myclass::foo() vs.  $obj = new Myclass() ) you'll be well on your way. 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.