An object is a PHP compound data type (along with arrays). More than one sort of value can be stored in a single variable. An object is a representation of a built-in or user-defined class.