How I Learned PHP Object Oriented Programming (OOP)

Published Jan 30, 2018
How I Learned PHP Object Oriented Programming (OOP)

About me

I'm a software developer and I strongly believe in possibilities. I was inspired by the growth of technology, even with little knowledge of computers.

I spent so much time online, surfing the net, to really know what is going on behind websites and web applications. I spent uncountable sleepless nights learning how Yahoo, Google, etc. were created and why people are using them.

Over time, I was able to see behind the scenes. Then, I started writing, thanks to view source code.

Why I wanted to learn PHP Object Oriented Programming (OOP)

Working with procedural programming involves writing many lines of code that are not reusable. Therefore, to write code that can be reusable, I learned PHP Object Oriented Programming.

It really took me a lot of time to understand the concepts of OOP. I spent more time reading the concepts of PHP OOP and trying to relate them to real life.

How I approached learning PHP Object Oriented Programming (OOP)

I read and understood the concepts of OOP, i.e abstraction, encapsulation, inheritance, and polymorphism, and then applied the concepts of class and object to real life scenarios with much practice. Many thanks to Object-Oriented Programming Concepts in PHP - Part 1 as one of my sources for learning.

Challenges I faced

Learning PHP OOP from procedural programming is a bit tricky for me. I almost gave up but the demand for reusability kept me going.

The concept of class and object seemed difficult for me, but after many attempts and approaches, I was able to get the concepts and the implementation.

Key takeaways

The concepts of PHP OOP, code reuasablility, and flexibility of PHP OOP.

Tips and advice

Learning can be tedious at times, but all you need is to be focused. Never give up and be fully committed.

Final thoughts and next steps

Learning the concepts of PHP OOP has really been a great advantage for me and I believe learning is forever.

Discover and read more posts from AFOLAYAN Isaiah
get started