How do I store an array of objects within an object in PHP?
<p>I would like one of the attributes of my object to be an array of another type of object.</p>

<p>How do I represent this (i.e. public $someObjectArray;)</p>

<p>What would be the syntax to add an entry to this attribute?</p>

<p>What would be the syntax to reference the object?</p>

<p>To provide some (hopefully) useful context.</p>

<p>Lets assume that the object is property which has some attributes one of which is a number of tenants who will have their own properties like name, age etc...</p>
