$rss_content = file_get_contents($rss_feed_url);
if ($rss_content !== false) {
$rss_data = simplexml_load_string($rss_content, 'SimpleXMLElement', LIBXML_NOCDATA);
$json_data = json_encode([
'channel' =?> [
'item' => json_decode(json_encode($rss_data->channel->item), true)
]
]);
echo '
';
} else {
echo '
';
}
?>