title: php objects define and set attributes in constructor
body: <p>Is it possible to define attributes to a class in the constructor.
  For instance I pass a Associative Array to a class constructor and I want the attributes to that class to be declared and set based on what is in the Associative Array.</p>
  
  <p>TIA</p>