Subversion Repositories oidplus

Rev

Rev 1265 | Rev 1294 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1265 Rev 1276
Line 654... Line 654...
654
            return $matches[1];
654
            return $matches[1];
655
        }
655
        }
656
    }
656
    }
657
    return null;
657
    return null;
658
}
658
}
-
 
659
 
-
 
660
/**
-
 
661
 * @param array $struct
-
 
662
 * @return string
-
 
663
 */
-
 
664
function array_to_html_ul_li(array $struct): string {
-
 
665
        $res = '';
-
 
666
        $res .= '<ul>';
-
 
667
        foreach ($struct as $name => $val) {
-
 
668
                $res .= '<li>';
-
 
669
                if (is_array($val)) {
-
 
670
                        $res .= $name . array_to_html_ul_li($val);
-
 
671
                } else {
-
 
672
                        $res .= $val;
-
 
673
                }
-
 
674
                $res .= '</li>';
-
 
675
        }
-
 
676
        $res .= '</ul>';
-
 
677
        return $res;
-
 
678
}