title: How to Convert 2D array into 1D array?
body: <p>I want to convert my 2D array into 1D array.
   When I do <code>var_dump($image_name_db);</code> 
  It shows :</p>
  
  <pre><code>array(2) {
    [0]=&gt;
    array(1) {
      ["image"]=&gt;
      string(7) "pic.PNG"
    }
    [1]=&gt;
    array(1) {
      ["image"]=&gt;
      string(14) "abouttown3.jpg"
    }
  }
  </code></pre>
  
  <p>Now how can I convert It into 1D array. As I want to compare two arrays. One array is 1D and other array is 2D, that is why i want 2D array in 1D. So i need both of them in 1D to compare easily.
  I am using codeigniter.</p>