Probably something like this:
<?php
function AlexaRank( $url )
{
preg_match( '#<POPULARITY URL="(.*?)" TEXT="([0-9]+){1,}"/>#si', file_get_contents('http://data.alexa.com/data?cli=10&dat=s&url=' . $url), $p );
return ( $p[2] ) ? number_format( intval($p[2]) ):0;
}
echo "wordpressapi.com/files/ Rank as per alexa.com: ";
echo AlexaRank('wordpressapi.com/files/');
?>
<?php
$domains = array( 'site1.com', 'site2.com', 'site3.com', 'site4.com' );
foreach ( $domains as $domain )
echo $domain, ' - ', AlexaRank( $domain ), '<br />', PHP_EOL;
?>
Source:
http://wordpressapi.com/2010/02/19/a...king-php-code/
__________________
Join the BEST cam affiliate program on the internet!
I've referred over $1.7mil in spending this past year, you should join in.

I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years..