Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7587035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:34:26+00:00 2026-05-30T19:34:26+00:00

I am trying to format retweets like twitter does it – Having the tweet

  • 0

I am trying to format retweets like twitter does it – Having the tweet include the retweeted user’s profile pic, name and text.

To do this, I am pulling the user profile pic, name and tweet id out of the “retweeted_status”, such as…

$rt_profile_img = $result->retweeted_status->user->profile_image_url;
$rt_screen_name = $result->retweeted_status->user->screen_name;
$rt_text = $result->retweeted_status->text;

The profile image and screen name work, but for some reason, the text output is still like this-

RT @user: message

I want to loose the “RT @user” and just keep the message. Thats what the “text” field under “retweeted_status” provides, but it’s not displaying it like that. I am displaying the right $rt_text too in my output. Any help is appreciated. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:34:27+00:00Added an answer on May 30, 2026 at 7:34 pm

    Can you not just use str_replace()?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to format large currency numbers like this: NSNumber *testVal = [NSDecimalNumber decimalNumberWithString:
I'm trying to format this and other elements alike, so it would look like
I'm trying to format my grid view so it looks like the following: so
I am trying to format a cell on jqGrid so that when the user
I'm trying to format an UITextField as user types text, for instance to show
I am trying to format a date like these august 2011, and august 24,2011
I'm trying to format the user input values using following technique, but I get
I'm trying to format a column in a <table/> using a <col/> element. I
I am trying to format some bad html to output into a pop window.
I'm trying to format a string to give me 2 characters for a number,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.