While objects and arrays may seem more or less interchangeable to a new PHP/Drupal coder, they really aren't. This screencast discusses some of the more vital differences.
- The possibility to have defined classes of objects, defining base/minimum features of the object
- That objects may have functions or methods in them
- That classes may inherit features from other classes by extending them
- That PHP/Drupal functions may require that objects are of certain classes (or any of their extended classes)
This is examplified by looking at a View object.
Modules:
Additional Resources: