title: Trying to access object inside array
body: <p>As a service result I have this array:</p>
  
  <pre><code>array(1) {
    [0]=&gt;
    object(stdClass)#322 (2) {
      ["NOME_PROPRIEDADE"]=&gt;
      string(8) "MATERIAL"
      ["VALORES"]=&gt;
      object(stdClass)#323 (1) {
        ["ValoresPossiveisVO"]=&gt;
        array(5) {
          [0]=&gt;
          object(stdClass)#324 (1) {
            ["VALOR"]=&gt;
            string(15) "CRISTAL INCOLOR"
          }
          [1]=&gt;
          object(stdClass)#325 (1) {
            ["VALOR"]=&gt;
            string(21) "CRISTAL FOTOCROMATICO"
          }
          [2]=&gt;
          object(stdClass)#326 (1) {
            ["VALOR"]=&gt;
            string(6) "RESINA"
          }
          [3]=&gt;
          object(stdClass)#327 (1) {
            ["VALOR"]=&gt;
            string(13) "POLICARBONATO"
          }
          [4]=&gt;
          object(stdClass)#328 (1) {
            ["VALOR"]=&gt;
            string(6) "TRIVEX"
          }
        }
      }
    }
  </code></pre>
  
  <p>I'm accessing its values like this:</p>
  
  <pre><code>foreach ($res-&gt;ObterValoresDosTiposDeProdutoParaWebSiteResult-&gt;PropriedadesPossiveisVO as $material)
  {
  echo $material-&gt;NOME_PROPRIEDADE; //it returns me MATERIAL, as expected
  }
  </code></pre>
  
  <p>It works but when I try to access <code>$material-&gt;VALORES</code> is returns me that it is a empty array: <code>array(o){}</code></p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks in advance for any help.</p>