PHP how to Get data from var_dump stdclass
<p>I use Dropbox API and I need to list all files inside a folder , when I use metaData method using var_dump();
like : var_dump($metaData);</p>

<p>I get these:</p>

<pre><code>object(stdClass)#26 (9) { 
    ["hash"]=&gt; string(32) "d36517b72d827dc28b1e0681a23e463a" 
    ["thumb_exists"]=&gt; bool(false) 
    ["bytes"]=&gt; int(0) 
    ["path"]=&gt; string(1) "/" 
    ["is_dir"]=&gt; bool(true) 
    ["size"]=&gt; string(7) "0 bytes" 
    ["root"]=&gt; string(10) "app_folder" 
    ["contents"]=&gt; array(1) { 
        [0]=&gt; object(stdClass)#27 (12) { 
            ["revision"]=&gt; int(1) 
            ["rev"]=&gt; string(9) "10815f504"  
            ["thumb_exists"]=&gt; bool(false)  
            ["bytes"]=&gt; int(7332680)  
            ["modified"]=&gt; string(31) "Sun, 03 Jun 2012 17:51:47 +0000"  
            ["client_mtime"]=&gt; string(31) "Sun, 03 Jun 2012 17:51:47 +0000"  
            ["path"]=&gt; string(9) "/etmh.pdf"  
            ["is_dir"]=&gt; bool(false)  
            ["icon"]=&gt; string(18) "page_white_acrobat"  
            ["root"]=&gt; string(7) "dropbox"  
            ["mime_type"]=&gt; string(15) "application/pdf"  
            ["size"]=&gt; string(4) "7 MB"  
        }  
    } 
    ["icon"]=&gt; string(6) "folder" 
} 
</code></pre>

<p>How can I deal with these data , for example I need to list all files in this folder 
, now , there is only one file in the example above (["path"]=> string(9) "/etmh.pdf" :: ["mime_type"]=> string(15) "application/pdf" )</p>

<p>I need some thing like foreach to get and deal with all data ..</p>

<p>Thank you ..</p>
