Public feed
#379493
function display_list_recursive2($var, $tabs = 0){ echo str_repeat("\t", $tabs), '[list]' . "\n"; if (is_array($var)) { foreach ($var as $key => $value) { if (is_array($value)) { echo str_repeat("\t", $tabs + 1), '[li]' . $key . "\n"; display_list_recursive2($value, $tabs + 1); echo str_repeat("\t", $tabs + 1), '[/li]' . "\n"; } else { echo str_repeat("\t", $tabs + 1), '[li]' . $key . '[/li]' . "\n"; } } } echo str_repeat("\t", $tabs), '[/list]' . "\n";}