private function html($data)
    {
        if (!is_array($data)) {
            return $data;
        }
        $return = '';
        foreach ($data as $key => $value) {
            $return .= '<li>' . $key . ': ' . (is_array($value) ? $this->html($value) : $value) . '</li>';
        }
        return '<ul>' . $return . '</ul>';
    }
private function html($data)
    {
        if (!is_array($data)) {
            return $data;
        }
        $return = '';
        foreach ($data as $key => $value) {
            $return .= '<li>' . $key . ': ' . (is_array($value) ? $this->html($value) : $value) . '</li>';
        }
        return '<ul>' . $return . '</ul>';
    }
private function html ( $ data ) { if ( ! is_array ( $ data ) ) { return $ data ; } $ return = '' ; foreach ( $ data as $ key => $ value ) { $ return .= '<li>' . $ key . ': ' . ( is_array ( $ value ) ? $ this -> html ( $ value ) : $ value ) . '</li>' ; } return '<ul>' . $ return . '</ul>' ; }
Transforms an array into an HTML list

@param array $data Array of data to transform
@return string HTML list
Transforms an array into an HTML list