October 17, 2018
Hot Topics:

Video: Getting Started with Object-Oriented PHP

  • January 13, 2011
  • By Jason Gilman
  • Send Email »
  • More Articles »

Although PHP wasn't conceived as an object-oriented language, its soaring popularity in the years following its initial release caused the developers to reconsider this decision. The decision to add object-oriented features in later releases was made in order to provider users with more sophisticated options for managing larger and more complex applications. However, to this day PHP remains a hybridized language, allowing both procedural and object-oriented programming. This flexibility has largely been a net positive because novice programmers generally find PHP to be the least intimidating of today's mainstream languages.

However, any novice programmer intent on building and maintaining a relatively complex PHP-driven website will almost certainly want to use a framework such as the Zend Framework, symfony or CakePHP. Because these frameworks are all object-oriented, developers lacking basic knowledge of PHP's object-oriented syntax will find themselves at a serious disadvantage. There's nothing to worry about though, as the syntax is every bit as straightforward as the rest of the language!

In the first of a two-part video series, you'll be introduced to PHP's object-oriented syntax, learning how to create a class, and populate it with class attributes and methods. You'll also learn how to access and manipulate object data, and create a constructor useful for initializing class data.

Comment and Contribute


(Maximum characters: 1200). You have characters left.



Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

By submitting your information, you agree that developer.com may send you developer offers via email, phone and text message, as well as email offers about other products and services that developer believes may be of interest to you. developer will process your information in accordance with the Quinstreet Privacy Policy.


Thanks for your registration, follow us on our social networks to keep up-to-date