How can I access array's item when there is an object in it? : <p>I have an array like this:</p>

<pre><code>echo "&lt;pre&gt;";
print_r($res_users);

/*
Array
(
    [0] =&gt; stdClass Object
        (
            [position] =&gt; 1
            [user] =&gt; stdClass Object
                (
                    [full_name] =&gt; دکوراسیون
                    [is_private] =&gt; 1
                    [has_anonymous_profile_picture] =&gt; 
                    [byline] =&gt; 39.3k followers
                    [profile_pic_url] =&gt; https://scontent-frt3-1.cdninstagram.com/t51.2885-19/s150x150/11352072_817936521647202_201395223_a.jpg
                    [pk] =&gt; 1480272396
                    [follower_count] =&gt; 39326
                    [is_verified] =&gt; 
                    [mutual_followers_count] =&gt; 0
                    [username] =&gt; sajad.sobhi
                )

        )
)
</code></pre>

<p>All I'm trying to do is selecting following URL from array above:</p>

<pre><code>https://scontent-frt3-1.cdninstagram.com/t51.2885-19/s150x150/11352072_817936521647202_201395223_a.jpg
</code></pre>

<p>Which is the value of <code>profile_pic_url</code>. How can I get that?</p>

<hr>

<p>Noted that this doesn't work:</p>

<pre><code>echo $res_users[0]['user']['profile_pic_url'];
</code></pre>
