title: How to get value from object in php
body: <p>I need to get the value of <code>[text]</code> from all these object - class. </p>
  
  <p>I can get values from arrays But from these class object thing in array ,I am unable to get the values of <code>[text]</code>. </p>
  
  <p>Any help would be greatly appreciated. </p>
  
  <pre><code>Array
  (
   [0] =&gt; stdClass Object
   (
      [text] =&gt; time
      [tr] =&gt; Array
      (
          [0] =&gt; stdClass Object
          (
              [text] =&gt; while
              [syn] =&gt; Array
              (
                  [0] =&gt; stdClass Object
                  (
                      [text] =&gt; when
                  )
              )
          )
          [1] =&gt; stdClass Object
          (
              [text] =&gt; occasion  
              [syn] =&gt; Array
              (
                  [0] =&gt; stdClass Object
                  (
                      [text] =&gt; moment
                  )
                  [1] =&gt; stdClass Object
                      (
                          [text] =&gt; day   
                      )
                      [2] =&gt; stdClass Object
                          (
                              [text] =&gt; date  
                          )
                  )
              )
          )
      )
  )
  </code></pre>