When I started out as a WordPress developer, I was working with object-oriented PHP before I even really knew what it was, thanks to WordPress post API class, WP_Query. In that article, I said that PHP has two data types that are considered “compound,” meaning we can store more than one piece of data in them. In PHP, objects and arrays are the only two data types that are actually considered compound. Objects are similar to arrays in that they provide structure for storing data, however, unlike arrays, objects are created with blueprints called classes, which can contain functions. In […]
No Comments
Start the conversation