Code:
function tagCloud(){
$myPages=simplexml_load_string(menu_data('',true));
$minFont=14; // change to min font size
$maxFont=20; // change to max font size
$tags = array();
$cloud = array();
// Grab the tags from the database
$components = $myPages->xpath("//*");
foreach ($components as $item){
$db = explode(' ', $item->meta);
while(list($key, $value) = each($db)){
$tags[$value] += 1;
...}
Last line is line 41
Im getting error message like Homershines..
Im added function tagCloud in theme_functions.php and call it from template <?php tagCloud(); ?>