如何通过get_field函数将图像存储在php变量中并在项目类中回显图像src,从而将图像添加到轮播?

Instead of directly posting the src of the image inside class="item". How can one echo out images using only one item class, that are acquired from a get_field function without repetition. I have 5 images that are fetched through get_field that are being stored in $image.

$image = get_field('field-name', $post->ID);


<div class="carousel slide" id="leader" data-ride="carousel">
    <div class="carousel-inner">
        <div class="item">
            <img src="<?php echo $image['url']; ?>"/>
        </div>
    </div>
</div>