title: How to merge two arrays into one and transpose the structure to simplify printing from a loop?
body: <p><strong>How can I combine 2 arrays ... :</strong></p>
  <pre><code>$array_1 = [['title' =&gt; 'Google'], ['title' =&gt; 'Bing']];
  
  $array_2 = [['link' =&gt; 'www.example1.com'], ['link' =&gt; 'www.example2.com']];
  </code></pre>
  <p><strong>In order to get ... :</strong></p>
  <pre><code>$array_3 = [
      ['title' =&gt; 'Google', 'link' =&gt; 'www.example1.com'],
      ['title' =&gt; 'Bing', 'link' =&gt; 'www.example2.com']
  ];
  </code></pre>
  <p>I guess <code>$array_3</code> should be structured the following way in order to get :</p>
  <p><strong>Final result:</strong></p>
  <pre><code>Google - See website
  
  Bing - See website
  </code></pre>
  <p><strong>The function to get the final result:</strong></p>
  <pre><code>function site_and_link($array_3) {
      foreach ($array_3 as $a) {
          echo $a['title'] . &quot; - &lt;a href=&quot; . $a['link'] . &quot;&gt;See website&lt;/a&gt;&lt;/br&gt;&quot;;
      }
  }
  </code></pre>
  <p>What is the missing step to arrange <code>$array_3</code>?</p>