title: PHP Multidimensional array flattening
body: <p>I have the following input array, I would like to flatten the array to evaluate true or false conditions. </p>
  
  <pre><code>array (
  'all' =&gt; 
     array (
        '0' =&gt; 
           array (
              0 =&gt; 'true')
        '1' =&gt; 
           array (
              0 =&gt; 'true')    
        '2' =&gt; 
            array (
              0 =&gt; 'true')
           ),
    array (
         'any' =&gt; 
              array (
                  '0' =&gt; 
                      array (
                          0 =&gt; 'true')
                  '1' =&gt; 
                      array (
                              0 =&gt; 'false')   
  ))  
  </code></pre>
  
  <p>)</p>
  
  <p>I would like to get the output in the following format.</p>
  
  <p>Output Array:</p>
  
  <pre><code>all =&gt;(
      true,
      true,
      true,
      any =&gt; (true,
             false)
  )   
  </code></pre>