Title: Feeling Dumb
Last modified: August 21, 2016

---

# Feeling Dumb

 *  [gerkmulder](https://wordpress.org/support/users/gerkmulder/)
 * (@gerkmulder)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/feeling-dumb/)
 * Hi Guys,
 * I am kind of new at this whole php stuff.
 * So after using the code in the proper template i get:
 *     ```
       array(23) { ["created_at"]=> string(30) "Sat May 10 21:09:48 +0000 2014" ["id"]=> int(465237292630953984) ["id_str"]=> string(18) "465237292630953984" ["text"]=> string(66) "ook Michael Jackshond is zenuwachtig #ESF14 http://t.co/zxeybM0D3b" ["source"]=> string(84) "Twitter for Android" ["truncated"]=> bool(false) ["in_reply_to_status_id"]=> NULL ["in_reply_to_status_id_str"]=> NULL ["in_reply_to_user_id"]=> NULL ["in_reply_to_user_id_str"]=> NULL ["in_reply_to_screen_name"]=> NULL ["user"]=> array(2) { ["id"]=> int(29184348) ["id_str"]=> string(8) "29184348" } ["geo"]=> NULL ["coordinates"]=> NULL ["place"]=> NULL ["contributors"]=> NULL ["retweet_count"]=> int(0) ["favorite_count"]=> int(0) ["entities"]=> array(5) { ["hashtags"]=> array(1) { [0]=> array(2) { ["text"]=> string(5) "ESF14" ["indices"]=> array(2) { [0]=> int(37) [1]=> int(43) } } } ["symbols"]=> array(0) { } ["urls"]=> array(0) { } ["user_mentions"]=> array(0) { } ["media"]=> array(1) { [0]=> array(10) { ["id"]=> int(465237287941332994) ["id_str"]=> string(18) "465237287941332994" ["indices"]=> array(2) { [0]=> int(44) [1]=> int(66) } ["media_url"]=> string(46) "http://pbs.twimg.com/media/BnTa2TQCYAIdbsW.jpg" ["media_url_https"]=> string(47) "https://pbs.twimg.com/media/BnTa2TQCYAIdbsW.jpg" ["url"]=> string(22) "http://t.co/zxeybM0D3b" ["display_url"]=> string(26) "pic.twitter.com/zxeybM0D3b" ["expanded_url"]=> string(63) "http://twitter.com/gerkmulder/status/465237292630953984/photo/1" ["type"]=> string(5) "photo" ["sizes"]=> array(4) { ["small"]=> array(3) { ["w"]=> int(340) ["h"]=> int(601) ["resize"]=> string(3) "fit" } ["large"]=> array(3) { ["w"]=> int(579) ["h"]=> int(1024) ["resize"]=> string(3) "fit" } ["thumb"]=> array(3) { ["w"]=> int(150) ["h"]=> int(150) ["resize"]=> string(4) "crop" } ["medium"]=> array(3) { ["w"]=> int(579) ["h"]=> int(1024) ["resize"]=> string(3) "fit" } } } } } ["favorited"]=> bool(false) ["retweeted"]=> bool(false) ["possibly_sensitive"]=> bool(false) ["lang"]=> string(2) "nl" } array(22) { ["created_at"]=> string(30) "Sat May 10 21:00:19 +0000 2014" ["id"]=> int(465234903723175937) ["id_str"]=> string(18) "465234903723175937" ["text"]=> string(15) "Boobies! #ESF14" ["source"]=> string(84) "Twitter for Android" ["truncated"]=> bool(false) ["in_reply_to_status_id"]=> NULL ["in_reply_to_status_id_str"]=> NULL ["in_reply_to_user_id"]=> NULL ["in_reply_to_user_id_str"]=> NULL ["in_reply_to_screen_name"]=> NULL ["user"]=> array(2) { ["id"]=> int(29184348) ["id_str"]=> string(8) "29184348" } ["geo"]=> NULL ["coordinates"]=> NULL ["place"]=> NULL ["contributors"]=> NULL ["retweet_count"]=> int(0) ["favorite_count"]=> int(0) ["entities"]=> array(4) { ["hashtags"]=> array(1) { [0]=> array(2) { ["text"]=> string(5) "ESF14" ["indices"]=> array(2) { [0]=> int(9) [1]=> int(15) } } } ["symbols"]=> array(0) { } ["urls"]=> array(0) { } ["user_mentions"]=> array(0) { } } ["favorited"]=> bool(false) ["retweeted"]=> bool(false) ["lang"]=> string(2) "sl" } array(22) { ["created_at"]=> string(30) "Sat May 10 20:59:13 +0000 2014" ["id"]=> int(465234629130485760) ["id_str"]=> string(18) "465234629130485760" ["text"]=> string(56) "Talking loud and nasely is not singing, or is it? #ESF14" ["source"]=> string(84) "Twitter for Android" ["truncated"]=> bool(false) ["in_reply_to_status_id"]=> NULL ["in_reply_to_status_id_str"]=> NULL ["in_reply_to_user_id"]=> NULL ["in_reply_to_user_id_str"]=> NULL ["in_reply_to_screen_name"]=> NULL ["user"]=> array(2) { ["id"]=> int(29184348) ["id_str"]=> string(8) "29184348" } ["geo"]=> NULL ["coordinates"]=> NULL ["place"]=> NULL ["contributors"]=> NULL ["retweet_count"]=> int(0) ["favorite_count"]=> int(0) ["entities"]=> array(4) { ["hashtags"]=> array(1) { [0]=> array(2) { ["text"]=> string(5) "ESF14" ["indices"]=> array(2) { [0]=> int(50) [1]=> int(56) } } } ["symbols"]=> array(0) { } ["urls"]=> array(0) { } ["user_mentions"]=> array(0) { } } ["favorited"]=> bool(false) ["retweeted"]=> bool(false) ["lang"]=> string(2) "en" }
       ```
   
 * As a result, i have pasted the code:
 *     ```
       <?php
         $tweets = getTweets('gerkmulder', 3);
         foreach($tweets as $tweet){
           var_dump($tweet);
         }
       ?>
       ```
   
 * When i reverse the username and number the result is the same 🙁
 * What am i doing wrong?
 * [https://wordpress.org/plugins/oauth-twitter-feed-for-developers/](https://wordpress.org/plugins/oauth-twitter-feed-for-developers/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [gerkmulder](https://wordpress.org/support/users/gerkmulder/)
 * (@gerkmulder)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/feeling-dumb/#post-4915825)
 * Anyone?
 *  Thread Starter [gerkmulder](https://wordpress.org/support/users/gerkmulder/)
 * (@gerkmulder)
 * [12 years ago](https://wordpress.org/support/topic/feeling-dumb/#post-4915848)
 * no one?
 *  [ifkas](https://wordpress.org/support/users/ifkas/)
 * (@ifkas)
 * [11 years, 5 months ago](https://wordpress.org/support/topic/feeling-dumb/#post-4915888)
 * Hi gerkmulder,
 * Do not feel dumb 🙂
 * Just use the dumped array (as you already have pasted it in your initial post)
   and echo like this for example:
 *     ```
       <?php foreach($tweets as $tweet){ ?>
       <ul>
       	<li><?php echo $tweet['text']; ?></li>
       	<li><?php echo $tweet['user']['screen_name']; ?></li>
       </ul>
       <?php } ?>
       ```
   
 * Where $tweet[‘text’] is the actual text from the tweet, while $tweet[‘user’][‘
   screen_name’] holds the username 🙂
 * Hope this helps !

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Feeling Dumb’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/oauth-twitter-feed-for-developers.
   svg)
 * [oAuth Twitter Feed for Developers](https://wordpress.org/plugins/oauth-twitter-feed-for-developers/)
 * [Support Threads](https://wordpress.org/support/plugin/oauth-twitter-feed-for-developers/)
 * [Active Topics](https://wordpress.org/support/plugin/oauth-twitter-feed-for-developers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/oauth-twitter-feed-for-developers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/oauth-twitter-feed-for-developers/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [ifkas](https://wordpress.org/support/users/ifkas/)
 * Last activity: [11 years, 5 months ago](https://wordpress.org/support/topic/feeling-dumb/#post-4915888)
 * Status: not resolved