Lua Code:
function PrintArray(array)
for k, v in pairs(array) do
if type(v) == "table" then
print(v, "contains:")
PrintArray(v)
else
print(v)
end
end
end
just call this function like this:
Lua Code:
local a = {
{1,2,3},
{4,5,6},
{7,8,9},
[8] = "HELP",
[12] = {
["MEW"] = true,
"foul",
},
}
PrintArray(a)