Delete retweeted tweets from home_timeline.json

retweet
api

#1

hi
i pull the tweets from Home timeline but it also pulls the retweeted tweets and when it wants to show the tweet , it starts by “RT @UserName” and its not okay…
how could i delete the retweeted tweets from out put ?!
here is my code :

$url = "https://api.twitter.com/1.1/statuses/home_timeline.json";
$requestMethod = "GET";
if (isset($_GET['user'])) {$user = $_GET['user'];} else {$user = "Parsi_Tweet";}
if (isset($_GET['count'])) {$count = $_GET['count'];} else {$count = 1000;}
  if (isset($user_tweet->entities->media)) {
$media_url = $user_tweet->entities->media[0]->media_url;
echo "<img src='{$media_url}' width='100%' />";
  }
$getfield = "?screen_name=$user&count=$count";
$twitter = new TwitterAPIExchange($settings);
$string = json_decode($twitter->setGetfield($getfield)
->buildOauth($url, $requestMethod)
->performRequest(),$assoc = TRUE);
if($string["errors"][0]["message"] != "") {echo "<h3>Sorry, there was a problem.</h3><p>Twitter returned the following error message:</p><p><em>".$string[errors][0]["message"]."</em></p>";exit();}
foreach($string as $items)

{
if($items['favorite_count'] > 10) {echo "تاریخ و زمان: ".$items['created_at']."<br />";}
if($items['favorite_count'] > 10) {echo "توئیت: ". $items['text']."<br />";}
if($items['favorite_count'] > 10) {echo "توسط: ". $items['user']['name']."<br />";}
if($items['favorite_count'] > 10) {echo "نام کاربری: ". $items['user']['screen_name']."<br />";}
if($items['favorite_count'] > 10) {echo "لینک: "."https://twitter.com/". $items['user']['screen_name']."<br />";}
if($items['favorite_count'] > 10) {echo "تعداد فالوور: ". $items['user']['followers_count']."<br />";}
if($items['favorite_count'] > 10) {echo "دوستان: ". $items['user']['friends_count']."<br />";}
if($items['favorite_count'] > 10) {echo "ریتوئیت ها: ". $items['retweet_count']."<br />";}
if($items['favorite_count'] > 10) {echo "فیو: ". $items['favorite_count']."<br />";}
if($items['favorite_count'] > 10) {echo "مدیا: ". $items['entities']['media']."<br />";}
if($items['favorite_count'] > 10) {echo "لیست شده: ". $items['user']['listed_count']."<br /><hr />";}