How can the PHP script be modified to display the images in multiple columns as requested?

To display the images in multiple columns, we can modify the PHP script by using CSS to style the layout. We can create a CSS class for the image container and set the width and float properties to achieve a multi-column layout. By adjusting the width and float properties, we can display the images in the desired number of columns.

<?php
$images = ['image1.jpg', 'image2.jpg', 'image3.jpg', 'image4.jpg', 'image5.jpg', 'image6.jpg'];

echo '<div class="image-container">';
foreach ($images as $image) {
    echo '<img src="' . $image . '" alt="' . $image . '" />';
}
echo '</div>';
?>
```

```css
<style>
.image-container {
    width: 33.33%; /* Set the width for each column */
    float: left; /* Float the image container to create columns */
}
</style>