title: PHP Multidimensional Array to Flat Folder View
body: <p>I have a multidimensional array like this one in PHP:</p>
  
  <pre><code>Array
  (
      [folder1] =&gt; Array
          (
              [folder11] =&gt; Array
                  (
                      [0] =&gt; index.html
                      [1] =&gt; tester.html
                  )
  
              [folder12] =&gt; Array
                  (
                      [folder21] =&gt; Array
                          (
                              [0] =&gt; astonmartindbs.jpg
                          )
  
                  )
  
          )
  
  )
  </code></pre>
  
  <p>and should be converted to a "file path" string like this one:</p>
  
  <pre><code>Array
  (
      [0] =&gt; 'folder1/folder11/index.html'
      [1] =&gt; 'folder1/folder11/tester.html'
      [2] =&gt; 'folder1/folder12/folder21/astonmartindbs.jpg'
  )
  </code></pre>
  
  <p>Has anybody any ideas?</p>
  
  <p>I have tried a lot any all deleted... This is the starting point of my last try:</p>
  
  <pre><code>public function processArray( $_array ) {
  foreach( $_array AS $key =&gt; $value ) {
      if( is_int( $key ) ) {
  
      } else {
      if( is_array( $value ) ) {
          $this-&gt;processArray( $value );
      } else {
  
      }
      }
  }
  echo $this-&gt;string;
  
  }
  </code></pre>
  
  <p>But i do not come to an end.... Hope somebody can help? </p>