title: How to convert object to array to get the data?
body: <p>My array coming like this </p>
  
  <pre><code>Array ( [0] =&gt; stdClass Object ( [ID] =&gt; 578 [post_author] =&gt; 1 [post_date] =&gt; 2011-01-18 07:23:17 [post_date_gmt] =&gt; 2011-01-18 07:23:17 [post_content] =&gt; Home WordPress is web software you can use to create a beautiful website or blog. We like to say that WordPress is both free and priceless at the same time. The core software is built by hundreds of community volunteers, and when you’re ready for more there are thousands of plugins and themes available to transform your site into almost anything you can imagine. Over 25 million people have chosen WordPress to power the place on the web they call “home” — we’d love you to join the family [post_title] =&gt; second post [post_excerpt] =&gt; [post_status] =&gt; publish [comment_status] =&gt; open
  </code></pre>
  
  <p>when i write like this</p>
  
  <pre><code>$myposts = get_posts( $args );
  $arrDt = (array) $myposts;
  print_r($arrDt);
  </code></pre>
  
  <p>but my problem is how can i get the values inside that object array.</p>
  
  <p>please help.
  Thnx 
  print_r($arrDt);</p>