Array
(
[0] => Array
(
[sno] => 1
[name] => Sivamani
[contact] => 750241378
[$city] => Madurai
)
)
Array
(
[1] => Array
(
[sno] => 2
[name] => Guru
[contact] => 1111111111
[$city] => Chennai
)
)
這是我的PHP的print_r陣列 我怎樣才能得到數組的長度和循環這些打印在javascript如何讓PHP的print_r陣列成JavaScript
[檢查'json_encode'](http://www.php.net/json_encode) –