title: Convert stdClass object to associative array in php
body: <p>I need to convert this array</p>
  
  <pre><code>Array ( 
  [0] =&gt; stdClass Object 
       ( [title] =&gt; primo ) 
  [1] =&gt; stdClass Object 
       ( [title] =&gt; secondo )) 
  </code></pre>
  
  <p>to </p>
  
  <pre><code>Array ( 
  [primo] =&gt; primo
  [secondo] =&gt; secondo ) 
  </code></pre>
  
  <p>Tried different options, including typecast,  still not found the correct solution</p>