Learn how to make your own classes and initialize objects based on the defined classes.
4.5
This course includes
7,775 learners enrolled
This course includes
Skill level
Beginner
Time to complete
Average based on combined completion rates — individual pacing in lessons, projects, and quizzes may vary
1 hour
Projects
1
Prerequisites
None
About this course
Advance your PHP skills by diving into object-oriented programming (OOP). You’ll learn how to model real-world elements using classes and objects, a fundamental concept in modern web development. By mastering OOP, you’ll unlock more powerful programming techniques for creating scalable and maintainable code.
Skills you'll gain
Understand object-oriented programming
Define classes and create objects
Use getter and setter methods to access and update properties
Syllabus
PHP Objects and Classes
Learn how to make your own classes and initialize objects based on the defined classes.
David studied Computer Science at the University of Massachusetts Amherst. Prior to joining Codecademy, he was a software engineering instructor at Fullstack Academy and New York Code & Design Academy.
Show your network you've done the work by earning a certificate of completion for each course or path you finish.
Show proofReceive a certificate that demonstrates you've completed a course or path.
Build a collectionThe more courses and paths you complete, the more certificates you collect.
Share with your networkEasily add certificates of completion to your LinkedIn profile to share your accomplishments.
Learn PHP: Objects and Classes course ratings and reviews
4.5
291 ratings
5 stars
68%
4 stars
20%
3 stars
8%
2 stars
3%
1 star
2%
The progress I have made since starting to use codecademy is immense! I can study for short periods or long periods at my own convenience - mostly late in the evenings.
Chris
Codecademy Learner
@ USA
I felt like I learned months in a week. I love how Codecademy uses learning by practice and gives great challenges to help the learner to understand a new concept and subject.
Rodrigo
Codecademy Learner
@ UK
Brilliant learning experience. Very interactive. Literally a game changer if you're learning on your own.
John-Andrew
Codecademy Learner
@ USA
Our learners work at
Join over 50 million learners and start Learn PHP: Objects and Classes today!