$cats = array(10, 27);$count = 0;foreach ($cats AS $cat){ $count += $vbulletin->forumcache["$cat"]['threadcount'];}