Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
PHP Alexa Rank Checker
* Ranking Alexa dengan PHP
* @param string $domain (
* @return int || void
function AlexaRank($domain){
$uri = '';
$uri .= $domain;
$xml = simplexml_load_file($uri);
// Data apa saja yang didapat bisa Anda lihat dengan fungsi print_r($xml)
//print_r($xml); die;
if (isset($xml->SD[1]->POPULARITY))
return (int) $xml->SD[1]->POPULARITY->attributes()->TEXT;
echo "Ranking Alexa adalah: ".AlexaRank('');

This comment has been minimized.

Copy link

IsaacMontero commented Apr 19, 2019

no longer available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.