src/Imap.php
private function getList($array)
    {
        $list = array();
        foreach ($array as $key => $value) {
            $list[] = !is_array($value) ? $value : $this->getList($v);
        }

        return '(' . implode(' ', $list) . ')';
    }
private function getList($array)
    {
        $list = array();
        foreach ($array as $key => $value) {
            $list[] = !is_array($value) ? $value : $this->getList($v);
        }

        return '(' . implode(' ', $list) . ')';
    }
private function getList ( $ array ) { $ list = array ( ) ; foreach ( $ array as $ key => $ value ) { $ list [ ] = ! is_array ( $ value ) ? $ value : $ this -> getList ( $ v ) ; } return '(' . implode ( ' ' , $ list ) . ')' ; }
Returns stringified list
considering arrays inside of arrays

@param array $array The list to transform

@return string
Returns stringified list considering arrays inside of arrays