Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
It turns out that object-oriented programming is not a relatively modern concept, with historical references going back as far as the 1960s. PHP didn't have object-oriented features until version 3 in 1998, which included basic class and object support. It wasn't complete, but it was a start. Two years later, in 2000, PHP 4 added more support, but suffered from some weirdness coming from variable assignments and references, leading to confusing code and high memory usage. Finally, PHP 5 came out in 2004, including an extensive rewrite of object handling with the introduction of Zend Engine 2, which featured a full feature set and greatly increased performance.
At that point, PHP had a complete object model, which had been missing from prior versions. Since then, most major modern PHP frameworks utilize or are transitioning to an implementation that leverages PHP 5's object support. Throughout this chapter, I've explored some of the fundamentals of object-oriented programming. Starting with the definition of an object, I expanded to describe what classes are, then gave a number of reasons why object-oriented programming was good. I closed with a brief history of PHP's support of objects.
This all looks good on paper, and if you're anything like me, you've probably had enough theory and are ready to start writing code. In the next chapter, I'm going to do just that, starting with creating an object.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 97381 Viewers
61 Video lessons · 84625 Viewers
71 Video lessons · 68826 Viewers
56 Video lessons · 101292 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.