", ">", $feed);
$clean = explode("
";
$tweeterwords[$s] = str_replace($currenturl, " ",$tweeterwords[$s]);
//echo $tweeterwords[$s] . "
";
$urls[$urls_index] = $currenturl;
$urls_index++;
}
}
}
$num_urls = count($urls) - 1;
$tags = array_count_values($urls);
//arsort($tags);
if ($tags) {
$max_size = 36; // max font size in pixels
$min_size = 14; // min font size in pixels
// largest and smallest array values
$max_qty = max(array_values($tags));
$min_qty = min(array_values($tags));
// find the range of values
$spread = $max_qty - $min_qty;
if ($spread == 0) {
$spread = 1;
}
// set the font-size increment
$step = ($max_size - $min_size) / ($spread);
foreach ($tags as $key => $value) {
$size = round($min_size + (($value - $min_qty) * $step));
if ($users == "users") {
if (strpos($key, "ttp://twitter.com/") && !strpos($key, "%23")) {
echo "" . str_replace("http://twitter.com/" , "", $key) . " ";
}
}
if ($users == "hashtags") {
if (strpos($key, "%23")) {
echo "" . str_replace("http://search.twitter.com/search?q=%23", "", $key) . " ";
}
}
if ($users == "links") {
if (!strpos($key, "twitter")) {
$url = $key;
$file = file($url);
$file = implode("",$file);
if(preg_match("/