Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Object-Oriented PHP Basics (Retired) Classes and Objects Object Oriented Overview

Becky Castle
Becky Castle
15,294 Points

I found that reading about Java classes & objects really helped me understand PHP OOP...

(So, this is not a question, but an insight for anyone struggling to understand these PHP OOP concepts...)

If you're completely new to the concept of object-oriented programming, I would personally recommend heading on over to Java's documentation on Classes & Objects [http://docs.oracle.com/javase/tutorial/java/javaOO/index.html]. A handy side-kick to that is the Java write-up explaining the Language Basics [https://docs.oracle.com/javase/tutorial/java/nutsandbolts/index.html].

After watching myriad beginner/ intermediate videos on PHP, I still felt I wasn't understanding some core concepts; it wasn't until I started studying some Java that it all started to make sense. And hopefully some of you will benefit from this, as well.

(Of course, after reading this, you'll want to head on over to PHP: Classes & Objects documentation [http://php.net/manual/en/language.oop5.php] .)

2 Answers

Thanks! This is needed in tree house. All courses should include links to external articles related to the topic.

Bonnie Martin
Bonnie Martin
13,671 Points

Thank you! I'm feeling really stuck right now. I was following along with the PHP videos just fine until this, and suddenly it was like I could not understand one word the teacher was speaking. It's like he suddenly acts like you have years of programming experience. I'm going to take some time to read what you've linked and I hope it will help.