title: php set object properties like array_fill_keys($keys, '') does for array
body: <p>I would like a PHP method that lets me set an object's properties like:</p>
  
  <p><code>array_fill_keys($keys, '');</code> </p>
  
  <p>does for an array's indexes</p>