favorited_by()) return "no one"; $html = array(); foreach (range(0, 5) as $i) { if (!isset($users[$i])) break; $html[] = '' . array_shift($users[$i]) . ''; } $output = implode(', ', $html); $html = array(); if (count($users) > 6) { foreach (range(6, count($users) - 1) as $i) $html[] = '' . $users[$i]['name'] . ''; $html = ''; $output .= $html.' ('.(count($users)-6).' more)'; } return $output; } }