title: Numbers not adding correctly in PHP
body: <p>I am trying to add a Twitter count number and a Feedburner count number but when I combine the two with basic addition, it fails!  If I get the valkues and print them seperatley it works fine, just will not let me add the two...</p>
  
  <pre><code>$twitCnt = twitter_subscribers(TWITTER_USERNAME);
  $feedCnt = feed_subscribers(FEEDBURNER_USERNAME);
  $totalCnt = $twitCnt + $feedCnt;
  
  echo $totalCnt;
  </code></pre>
  
  <p>Assume that <code>$twitCnt</code> is = 2000 and <code>$feedCnt</code> is = 1000  </p>
  
  <p>Now when I try to add the 2 instead of getting <code>3000</code> I will get the <code>$feedCnt</code> value + 1 = <code>1001</code> instead of <code>3000</code></p>
  
  <p>I am currently stumped, If I print the <code>$twitCnt</code> and the <code>$feedCnt</code> they show the correct amounts, however when I add the 2 in my code, the <code>$twitCnt</code> is shown as = 1 instead of it's actual value.</p>
  
  <p>Any ideas what would cause this?</p>
  
  <hr>
  
  <p>Update after running <code>var_dump($twitCnt, $feedCnt)</code></p>
  
  <pre><code>string(5) "3,000"
  object(SimpleXMLElement)#238 (1) {
    [0]=&gt;
    string(5) "1,000"
  }
  </code></pre>
  
  <p>Also the Functions for getting the stats...</p>
  
  <pre><code>function twitter_subscribers($username = 'yourname'){
      $count = get_transient('twitter_count');
      if ($count != false){
          return $count;
      }else{
          $count = 0;         
          $url = 'http://api.twitter.com/1/users/show.xml?screen_name='. $username;
          $ch = curl_init();
          curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
          curl_setopt($ch, CURLOPT_URL, $url);
          $data = curl_exec($ch);
          curl_close($ch);
          $xml = new SimpleXMLElement($data);
          $count = $xml-&gt;followers_count;
          $count = (float) $count;
          $count = number_format($count);
          set_transient('twitter_count', $count, 21600); // 6 hour cache
          return $count;
      }
  }
  
  function feed_subscribers($username = 'yourname')
  {
      $feed_url = 'http://feeds.feedburner.com/' . $username;
      $count = get_transient('rss_count');
      if ($count != false)
          return $count;
      $count = 0;
      $data = wp_remote_get('http://feedburner.google.com/api/awareness/1.0/GetFeedData?uri=' .
          $feed_url . '');
      if (is_wp_error($data)) {
          return 'error';
      } else {
          $body = wp_remote_retrieve_body($data);
          echo $body;
          $xml = new SimpleXMLElement($body);
          $status = $xml-&gt;attributes();
          if ($status == 'ok') {
              $count = $xml-&gt;feed-&gt;entry-&gt;attributes()-&gt;circulation;
          } else {
              $count = 300; // fallback number
          }
      }
      set_transient('rss_count', $count, 21600); // 6 hour cache//60*60*24
  
      return $count;
  }
  </code></pre>