Count tweets for url with PHP

Snippet for counting tweets for a url with PHP
function getTweetCount($sURL) { $sJSON = file_get_contents("http://urls.api.twitter.com/1/urls/count.json?url=".urlencode($sURL)); $aResult = json_decode($sJSON, true); return $aResult['count']; }

Url: http://sklueh.de/2012/12/anzahl-der-tweets-einer-url-mit-php-auslesen/

Language: PHP | User: sklueh | Created: Sep 24, 2013