How do I fill an object in PHP from an Array
<p>Suppose I have:</p>

<pre><code>class A{
 public $one;
 public $two;
}
</code></pre>

<p>and an array with values:</p>

<pre><code>array('one' =&gt; 234, 'two' =&gt; 2)
</code></pre>

<p>is there a way to have an instance of A filled with the right values from the array automatically?</p>
