Using arrays VS objects for storing data
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3193765/when-should-i-use-stdclass-and-when-should-i-use-an-array-in-php5-oo-code">When should I use stdClass and when should I use an array in php5 oo code ??</a>  </p>
</blockquote>



<p>What are the benefits of using one of the two structures over the other?</p>

<pre><code>// array
$user['name'] = 'Emanuil';

// object
$user-&gt;name = 'Emanuil';
</code></pre>
