w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Extract values from a multidimensional arrays with js
var array = [
    ["Bill", "Smith", "32"],
    ["Sarah", "Lord", "28"],
    ["Elizabeth", "Crayford", "20"],
    ["David", "Clark", "54"],
    ["Robert", "Robinson", "18"]
];
for (var i = 0, len = array.length; i < len; ++i) {
    document.write(array[i].join(", ") + "<br>");
}




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.