function show_array_value($array) { $html = ""; foreach ($array as $key => $value) { $html .= htmlentities($key) . "=["; if (is_array($value)) { $html .= show_array_value($value); } else { $html .= htmlentities($value); } $html .= "]"; } return $html; }
function show_array_value($array) { $html = ''; foreach ($array as $key => $value) { $html .= htmlentities($key) . '=['; if (is_array($value)) { $html .= show_array_value($value); } else { $html .= htmlentities($value); } $html .= ']'; } return $html; }