Note that there are some explanatory texts on larger screens.

plurals
  1. POHow would i access the properties in this object? Twitter API
    text
    copied!<p>I have stores this object in an variable called results. How would i access the profile_image_url for example.</p> <p>Here is the return value with print_r:</p> <pre><code>stdClass Object ( [results] =&gt; Array ( [0] =&gt; stdClass Object ( [profile_image_url] =&gt; http://a3.twimg.com/profile_images/685278639/twitter-logo_normal.jpg [created_at] =&gt; Mon, 10 May 2010 11:29:44 +0000 [from_user] =&gt; BarclaysWealth [metadata] =&gt; stdClass Object ( [result_type] =&gt; recent ) [to_user_id] =&gt; [text] =&gt; RT @BarclaysStock: Investment ViewPoint - We take a look at what a hung parliament could mean for the UK economy http://bit.ly/OaYh7 [id] =&gt; 13721505359 [from_user_id] =&gt; 14895786 [geo] =&gt; [iso_language_code] =&gt; en [source] =&gt; &lt;a href="http://twitter.com/"&gt;web&lt;/a&gt; ) [1] =&gt; stdClass Object ( [profile_image_url] =&gt; http://a1.twimg.com/profile_images/671523082/32fb0a8_normal.jpg [created_at] =&gt; Fri, 07 May 2010 21:02:10 +0000 [from_user] =&gt; InfoFocus [metadata] =&gt; stdClass Object ( [result_type] =&gt; recent ) [to_user_id] =&gt; [text] =&gt; RT @BarclaysWealth: RT @BarclaysStock: Investment ViewPoint - We take a look at what a hung parliament could mean for the UK economy http://bit.ly/OaYh7 [id] =&gt; 13569384857 [from_user_id] =&gt; 85742792 [geo] =&gt; [iso_language_code] =&gt; en [source] =&gt; &lt;a href="http://www.hootsuite.com" rel="nofollow"&gt;HootSuite&lt;/a&gt; ) [2] =&gt; stdClass Object ( [profile_image_url] =&gt; http://a3.twimg.com/profile_images/685278639/twitter-logo_normal.jpg [created_at] =&gt; Fri, 07 May 2010 20:59:20 +0000 [from_user] =&gt; BarclaysWealth [metadata] =&gt; stdClass Object ( [result_type] =&gt; recent ) [to_user_id] =&gt; [text] =&gt; RT @BarclaysStock: Investment ViewPoint - We take a look at what a hung parliament could mean for the UK economy http://bit.ly/OaYh7 [id] =&gt; 13569257933 [from_user_id] =&gt; 14895786 [geo] =&gt; [iso_language_code] =&gt; en [source] =&gt; &lt;a href="http://www.hootsuite.com" rel="nofollow"&gt;HootSuite&lt;/a&gt; ) [3] =&gt; stdClass Object ( [profile_image_url] =&gt; http://a1.twimg.com/profile_images/485934856/BD_Icon_Twitter_small_normal.gif [created_at] =&gt; Fri, 07 May 2010 16:35:56 +0000 [from_user] =&gt; BARXdirect [metadata] =&gt; stdClass Object ( [result_type] =&gt; recent ) [to_user_id] =&gt; [text] =&gt; RT @BarclaysStock: Investment ViewPoint - We take a look at what a hung parliament could mean for the UK economy http://bit.ly/OaYh7 [id] =&gt; 13557670463 [from_user_id] =&gt; 66715243 [geo] =&gt; [iso_language_code] =&gt; en [source] =&gt; &lt;a href="http://twitter.com/"&gt;web&lt;/a&gt; ) [4] =&gt; stdClass Object ( [profile_image_url] =&gt; http://a1.twimg.com/profile_images/431590520/BSL_icon_normal.gif [created_at] =&gt; Fri, 07 May 2010 16:35:12 +0000 [from_user] =&gt; BarclaysStock [metadata] =&gt; stdClass Object ( [result_type] =&gt; recent ) [to_user_id] =&gt; [text] =&gt; Investment ViewPoint - We take a look at what a hung parliament could mean for the UK economy http://bit.ly/OaYh7 [id] =&gt; 13557633799 [from_user_id] =&gt; 36238006 [geo] =&gt; [iso_language_code] =&gt; en [source] =&gt; &lt;a href="http://twitter.com/"&gt;web&lt;/a&gt; ) ) [max_id] =&gt; 13722716932 [since_id] =&gt; 0 [refresh_url] =&gt; ?since_id=13722716932&amp;q=http%3A%2F%2Fbit.ly%2FOaYh7 [results_per_page] =&gt; 15 [page] =&gt; 1 [completed_in] =&gt; 0.026887 [query] =&gt; http%3A%2F%2Fbit.ly%2FOaYh7 ) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload