title: How to structure outputed data in specific table order
body: <p>How would you display / Echo pictures with a name underneeth in the order shown on the example below in php ? Sort of like echoing a friends list. Im looking for how to structure it with code, I guess thats the correct way to explain what I want to achieve, hope that helps.</p>
  
  <p>I tried</p>
  
  <pre><code>echo '
      &lt;tr&gt;
          &lt;td align=\"center\"&gt;
              &lt;img src=\"hello.png\" alt=\"My Picture\" /&gt;&lt;br /&gt; Name
          &lt;/td&gt;
      &lt;/tr&gt;
      ';
  </code></pre>
  
  <p>but that still does not quite work</p>
  
  <p>What i want to acheive,</p>
  
  <p><img src="https://i.stack.imgur.com/bAbUc.png" alt="Example Picture"></p>
  
  <p>Sorry for the bad explanation, any help and examples would be helpful</p>
  
  <p>Thanks!</p>