title: Get values stdClass Object PHP
body: <p>I work with mp4 data extract php script. this returns a  stdClass Object as below. can anyone tell me how to show the duration from below object. 
  thank you</p>
  
  <pre><code>stdClass Object
  (
      [hasVideo] =&gt; 1
      [hasAudio] =&gt; 1
      [video] =&gt; stdClass Object
          (
              [width] =&gt; 472
              [height] =&gt; 360
              [codec] =&gt; 224
              [codecStr] =&gt; H.264
          )
  
      [audio] =&gt; stdClass Object
          (
              [codec] =&gt; 224
              [codecStr] =&gt; AAC
          )
  
      [duration] =&gt; 622.8
  )
  </code></pre>