$obj = json_decode($homepage);
echo $obj->name_ru.'</br>';
$previews = array_slice($obj->screen_film, 0, 3);
foreach($previews as $preview) {
echo '<img src="' . $preview->preview . '">';
}
// update 2
// Собираем всех
$creators = [];
foreach ($obj->creators->director as $director) {
$creators[] = $director->name_person_ru;
}
// макс первых 6
$creators = array_slice($creators, 0, 6);
// SQL
$sql = 'INSERT *** VALUES("'. implode('", "', $creators) .'")';