1<?php
2
3abstract class uncmapDokuWikiTest extends DokuWikiTest {
4
5    function flatten_array($array){
6        $array = array_values($array);
7        $return = array();
8        while ($array){
9            $value = array_shift($array);
10            if (is_array($value)){
11                array_splice($array,0,0,$value);
12            }else{
13                $return[] = $value;
14            }
15        }
16        return $return;
17    }
18
19}
20