stdClass Object
(
    [friends_count] => 54
    [description] => i'TS THE digiTAL vERSiOn 0b devilZ! tECH & mUUsic fReak.

sImpLE buT.......! :)
    [screen_name] => 2020Volt
    [profile_sidebar_border_color] => 181A1E
    [status] => stdClass Object
        (
            [in_reply_to_user_id_str] => 83300174
            [place] => 
            [coordinates] => 
            [contributors] => 
            [in_reply_to_screen_name] => Anik1990
            [geo] => 
            [retweet_count] => 
            [source] => Seesmic Web
            [retweeted] => 
            [in_reply_to_status_id] => 29180026185
            [created_at] => Sat Oct 30 13:04:53 +0000 2010
            [in_reply_to_user_id] => 83300174
            [truncated] => 
            [in_reply_to_status_id_str] => 29180026185
            [id] => 29181306201
            [id_str] => 29181306201
            [favorited] => 
            [text] => @Anik1990 its just my point of view man.....
        )

[geo_enabled] => 1
[follow_request_sent] => 
[time_zone] => Dhaka
[favourites_count] => 1
[verified] => 
[notifications] => 
[profile_background_color] => 1A1B1F
[url] => http://techysafi.wordpress.com
[lang] => en
[profile_use_background_image] => 1
[created_at] => Tue Sep 21 15:28:38 +0000 2010
[profile_text_color] => 666666
[location] => Dhaka,Bangladesh
[listed_count] => 6
[protected] => 
[statuses_count] => 1962
[profile_background_image_url] => http://s.twimg.com/a/1288217225/images/themes/theme9/bg.gif
[profile_link_color] => 2FC2EF
[name] => Tech Freak Satan
[show_all_inline_media] => 
[following] => 
[profile_image_url] => http://a1.twimg.com/profile_images/1146520409/SDC11078_normal.jpg
[id] => 193332358
[id_str] => 193332358
[contributors_enabled] => 
[profile_background_tile] => 
[utc_offset] => 21600
[profile_sidebar_fill_color] => 252429
[followers_count] => 60
)

Now my Question is HOW I can turn [text] into a variable like $tweet ?? and the [name] as well. Because I want to store them on mysql, so I need to retrieve the value of [text] & [name] !

(Im begging your pardon, pls don't treat me as a professional so whatever you gonna say, say it completely & clearly...and I know Im stupid :-)

Thanks in advance

    if the objects name is fish then text is

    $fish->text;

      your way is not working 😕

      $fish->status->text;
      $fish->text;

      any of above is not returning anything.

        what's the name of the object?

          Dunno, but are u talking about it??

          [status] => stdClass Object

            Yea, I just figured out what you guys have been said 🙂

            You were asking for this line $content = $connection->get('account/verify_credentials');

            and I should type like this, $tweet = $content->status->text; echo "$tweet";

            haha
            Thanks again 🙂

              Write a Reply...