PHP Curl and Loop based on a numeric value
- by danit
Im using the Twitter API to collect the number of tweets I've favorited, well to be accurate the total pages of favorited tweets.
I use this URL: http://api.twitter.com/1/users/show/username.xml
I grab the XML element 'favorites_count'
For this example lets assume favorites_count=5
The Twitter API uses this URL to get the favorties:…