title: PHP Object, set multiple properties
body: <p>Is it possible to set multiple properties at a time for an object in php?
  Instead of doing:</p>
  
  <pre><code>$object-&gt;prop1 = $something;
  $object-&gt;prop2 = $otherthing;
  $object-&gt;prop3 = $morethings;
  </code></pre>
  
  <p>do something like:</p>
  
  <pre><code>$object = (object) array(
      'prop1' =&gt; $something,
      'prop2' =&gt; $otherthing,
      'prop3' =&gt; $morethings
  );
  </code></pre>
  
  <p>but <strong>without overwriting the object</strong>.</p>