$cat_id)); // 检查是否有链接 if (!empty($bookmarks)) { // 随机打乱数组顺序 shuffle($bookmarks); // 输出链接内容 foreach ($bookmarks as $bookmark) { ?>