$s = json_decode($file);
foreach ($s as $t => $k){
echo $k->comment;
echo $k->subtitle;
echo $k->file;
echo $k->poster;
echo '<br>';
}
<?php
$url = 'https://www.stormo.tv/playlist_iframe/950/';
$content = file_get_contents($url);
$playerjs = [];
if (preg_match_all('/Playerjs\((\{.*?\})\);/isu', $content, $match)) {
$playerjs = $match[1];
}
echo '<pre>';
if (count($playerjs)) {
foreach ($playerjs as $item) {
$file = preg_match("/file:\s*'(.*?)'/isu", $item, $match) ? $match[1] : '';
$embed = preg_match("/embed:\s*'(.*?)'/isu", $item, $match) ? $match[1] : '';
print_r($file);
print_r($embed);
}
}