How can the issue of only one image being displayed when listing multiple servers in PHP be resolved?

Issue: The problem of only one image being displayed when listing multiple servers in PHP can be resolved by ensuring that each server's image is displayed within its own separate HTML element, such as a <div> tag with a unique identifier. This way, each server's image will be displayed independently of the others. PHP Code Snippet:

&lt;?php
// Array of server data with server name and image URL
$servers = array(
    array(&quot;name&quot; =&gt; &quot;Server 1&quot;, &quot;image&quot; =&gt; &quot;server1.jpg&quot;),
    array(&quot;name&quot; =&gt; &quot;Server 2&quot;, &quot;image&quot; =&gt; &quot;server2.jpg&quot;),
    array(&quot;name&quot; =&gt; &quot;Server 3&quot;, &quot;image&quot; =&gt; &quot;server3.jpg&quot;)
);

// Loop through the servers array and display each server&#039;s image within a separate &lt;div&gt; tag
foreach ($servers as $server) {
    echo &#039;&lt;div id=&quot;&#039; . $server[&quot;name&quot;] . &#039;&quot;&gt;&#039;;
    echo &#039;&lt;img src=&quot;&#039; . $server[&quot;image&quot;] . &#039;&quot; alt=&quot;&#039; . $server[&quot;name&quot;] . &#039;&quot;&gt;&#039;;
    echo &#039;&lt;/div&gt;&#039;;
}
?&gt;