JavaScript:从php json编码后创建的数组中提取一个元素

时间:2016-01-31 07:46:35

标签: php arrays multidimensional-array

var Array = [["1","123","3","3","3","20"],["2","253","2","2","2","15"],["3","222","4","4","4","15"],["4","353","5","5","5","15"]];
alert(Array[0][0]);

仅打印[。请建议如何在数组中循环打印单个元素。或者只是第一个数组元素的单个元素。

1 个答案:

答案 0 :(得分:0)

试试这个

Match (books: Book)<-[:Likes]-(ppl:Reader)

}

  

在Javascript中

$Array = [["1","123","3","3","3","20"],["2","253","2","2","2","15"],    ["3","222","4","4","4","15"],["4","353","5","5","5","15"]];
foreach($arrays as $array){
   foreach($array as $val){
     echo $val.'<br>';
   }