Converting a particular array to an object
<p>I'm looking for an elegant approach to convert <code>$array</code> to <code>$object</code>.</p>

<p>If <code>$array</code> contains <code>Array ( [0] =&gt; en=english [1] =&gt; fr=french )</code> the resulting <code>$object</code> should contain <code>stdClass Object ( [en] =&gt; english [fr] =&gt; french )</code></p>

<p>The most elegant approach would be the one that uses the least variable names.</p>
