GrahamMcGregor Posted January 14, 2014 Share Posted January 14, 2014 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 Quote Link to comment https://forums.phpfreaks.com/topic/285366-hi-all-new-here-from-fife-scotland/ Share on other sites More sharing options...
gizmola Posted January 14, 2014 Share Posted January 14, 2014 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. Quote Link to comment https://forums.phpfreaks.com/topic/285366-hi-all-new-here-from-fife-scotland/#findComment-1465235 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.