title: php get value in php array
body: <p>This should be simple but I can't figure it out...I have this array in php:</p>
  <pre><code>Array ( [108] =&gt; WP_Post Object ( [ID] =&gt; 108 [post_author] =&gt; 1 [post_date] =&gt; 2020-07-17 19:25:21 [post_date_gmt] =&gt; 2020-07-18 00:25:21 [post_content] =&gt; [post_title] =&gt; Sight_to_See_paperback_final13-10-10-19 [post_excerpt] =&gt; [post_status] =&gt; inherit [comment_status] =&gt; open [ping_status] =&gt; closed [post_password] =&gt; [post_name] =&gt; sight_to_see_paperback_final13-10-10-19-2 [to_ping] =&gt; [pinged] =&gt; [post_modified] =&gt; 2020-11-29 16:09:42 [post_modified_gmt] =&gt; 2020-11-29 21:09:42 [post_content_filtered] =&gt; [post_parent] =&gt; 105 [guid] =&gt; https://legacytoo.com/wp-content/uploads/2020/07/Sight_to_See_paperback_final13-10-10-19-1.pdf [menu_order] =&gt; 0 [post_type] =&gt; attachment [post_mime_type] =&gt; application/pdf [comment_count] =&gt; 0 [filter] =&gt; raw )
  </code></pre>
  <p>How do I get the value of &quot;108&quot; in my code?  Or, how do I get the guid value when I don't have the 108 value.
  I've get the array from this:</p>
  <pre><code>   $query = array(
          'post_parent'       =&gt; get_the_ID(),
          'post_type'         =&gt; 'attachment',
          'post_mime_type'    =&gt; 'application/pdf');
  
      $images = get_children( $query );
  </code></pre>
  <p>and I try to display it like this:</p>
  <pre><code>$thisVar = $images-&gt;guid; 
  </code></pre>
  <p>and this</p>
  <pre><code>$thisVar = $images[0]-&gt;guid;
  </code></pre>
  <p>and neither works.  This one works but again, I don't have the 108 value:</p>
  <pre><code>$thisVar = $images[108]-&gt;guid;
  </code></pre>
  <p>Thanks if you can help.</p>