title: How to convert multi-dimensional array into single array using PHP?
body: <p>After implementing database queries, I am getting the multi-dimensional array below.</p>
  <p><strong>Two Dimensional Array</strong></p>
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [t1] =&gt; test1
          )
  
      [1] =&gt; Array
          (
              [t2] =&gt; test2
          )
  
      [2] =&gt; Array
          (
              [t3] =&gt; test3
          )
  
      [3] =&gt; Array
          (
              [t4] =&gt; test4
          )
  
      [4] =&gt; Array
          (
              [t5] =&gt; test5
          )
  
  )
  </code></pre>
  <p>but I want to convert it to a single dimensional array, like the format below:</p>
  <p><strong>One Dimensional Array</strong></p>
  <pre><code>Array (
      t1 =&gt; test1
      t2 =&gt; test2
      t3 =&gt; test3
      t4 =&gt; test4
      t5 =&gt; test5
  )
  </code></pre>
  <p>How can I do this?</p>