I have a new article appearing in issue 125 of Web Designer Magazine – the November issue.
Learn Object Oriented Programming (OOP) in PHP
Sample from the article:
With the release of php5, php programmers finally had the power to code with the ‘big boys’. Like Java and C#, php finally has a complete OOP infrastructure.
In this tutorial, you will be guided (step-by-step) through the process of building and working with objects using php’s built-in OOP capabilities.
At the same time you will learn:
- The difference between building a php application the old fashioned (procedural) way, versus the OOP way.
- What the basic OOP principles are, and how to use them in PHP.
- When you would want to use OOP in your PHP scripts.
People run into confusion when programming because of some lack of understanding of the basics. With this in mind, we are going to slowly go over key OOP principles while creating our own PHP objects. With this knowledge, you will be able to explore OOP further.
For this tutorial, you should understand a few PHP basics: functions, variables, conditionals and loops.
The article is broken down into 23 digestible steps with plenty of screen shots – makes it really easy to take in the information.
By the end of the article you will have your hands dirty with OOP PHP code … there is not better way to learn programming than to write code!
… I plan (at some point in the near future,) to put out a video tutorial to complement this article.
This entry was posted on Tuesday, November 7th, 2006 at 3:03 am and is filed under Beginners PHP Articles, Object Oriented PHP. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed.