<?php
$FirstURL = 'https://www.youtube.com/watch?v=dwW4mWJwfNI';
$url = [
    'youtube' => [
        'https://www.youtube.com/watch?v=Vx1ohWyu9dQ',
        'https://www.youtube.com/watch?v=cecLP-OU-s8',
        'https://www.youtube.com/watch?v=Z4VJYHxyCTg',
        'https://www.youtube.com/watch?v=xE8-qv08mOI',
        'https://www.youtube.com/watch?v=B7Lf0TQppYA',
        'https://www.youtube.com/watch?v=2iMSSpuBzu8',
        'https://www.youtube.com/watch?v=9aT85ri1Bb0',
        'https://www.youtube.com/watch?v=PPhOV6eiWPo',
    ]
];
?>

           <?php foreach ($url['youtube'] as $link) { 
                // Transformar o link de watch?v= para embed/ no formato correto para iframe
                $embedLink = str_replace("watch?v=", "embed/", $link);
            ?>
            <div class="slick-slider-slide">
                
            </div>
           <?php } ?>
           
           
<span class="line"></span>
<div>
    <div class="h2-title flex-s-c">
        <span>Partners of server</span>
    </div>

    <div class="sliderGallery">
        <div class="slider-gallery">
            <?php foreach ($url['youtube'] as $link) {
                $embedLink = str_replace("watch?v=", "embed/", $link);
            ?>
            <div class="sliderImg"><iframe width="220" height="145" src="<?php echo $embedLink ?>" title="Mu Horizon Season 6 - DOMINGAOOOO - PVP" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div>
            <?php } ?>
            
        </div>
    </div>
</div>