========JS Ver Start =====
========JS Ver End =====
channel->item as $item) {
$guid = (string) $item->guid;
$title = (string) $item->title;
$content = (string) $item->description;
$firstParagraph = extractParagraph($content);
$wrappedTitle = "{$title}";
echo "{$wrappedTitle} {$firstParagraph}";
}
} catch (Exception $e) {
echo 'Error: ' . $e->getMessage();
}
}
function extractParagraph($content) {
$regex = '/(.*?)<\/p>/';
preg_match($regex, $content, $matches);
return isset($matches[0]) ? $matches[0] : null;
}
$pixivUserUrl = 'https://rsshub.app/pixiv/user/75406576';
getAllTitlesAndGuidLinks($pixivUserUrl);
?>