title: Simplify a nested array into a single level array
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1319903/how-to-flatten-a-multidimensional-array">How to Flatten a Multidimensional Array?</a>  </p>
  </blockquote>
  
  
  
  <p>Let's say I have an array like this:</p>
  
  <pre><code>array (
    1 =&gt; 
    array (
      2 =&gt; 
      array (
        16 =&gt; 
        array (
          18 =&gt; 
          array (
          ),
        ),
        17 =&gt; 
        array (
        ),
      ),
    ),
    14 =&gt; 
    array (
      15 =&gt; 
      array (
      ),
    ),
  )
  </code></pre>
  
  <p>How would I go about tranforming it into array like this?</p>
  
  <pre><code>array(1,2,16,18,17,14,15);
  </code></pre>