I have the following code.
$final = array();
$search_for = '<POPULARITY URL';
$part = file_get_contents_curl('http://data.alexa.com/data?cli=10&dat=snbamz&url='.trim($domain));
$str = explode($search_for, $part); //ERROR HAPPENS HERE//
$str = array_shift(explode('"/>', $str[1]));
$str = explode('TEXT="', $str);
$str[1] = str_replace('" SOURCE="panel',"",$str[1]);
preg_match('#<COUNTRY CODE="(.*?)" NAME="(.*?)" RANK="(.*?)"#si', $part, $c);
$final['global_rank'] = $str[1];
$final['country_name'] = $c[2];
$final['country_rank'] = $c[3];
return $final;
I can't seem to get this to work out without getting this error. "Strict Standards: Only variables should be passed by reference"