如题所述
直接把JSON解析为数组,遍历输出 <?php$str = '[["61.191.41.130", 80, 3], ["47.88.240.209", 137, 3], ["88.85.240.60", 8080, 3]]';$arr = json_decode($str,true);foreach( $arr as $row){ echo $row[0].':'.$row[1].'<br>';}?>