多维数组,foreach,遍历
后端开发-php教程
马士兵源码,ubuntu刷新wifi列表,tomcat启动显示没安装,小说防爬虫,php商城源码开源,seo交流网seo教程lzw
<?php
//声明一个三维数组
$info=array(
"user"=>array(
array(1,"zhangsan",20,"nan"),
array(2,"lisi",20,"nan"),
array(3,"wangwu",25,"nv")
),
"score"=>array(
array(1,100,98,95,96),
array(2,56,98,87,84),
array(3,68,75,84,79)
),
"connect"=>array(
array(1,'2468246',"salkh@bbs.com"),
array(2,'343681643',"aikdki@sina.com"),
array(3,'3618468',"42816@qq.com")
)
);
//循环遍历,输出一个表格
foreach($info as $tableName=>$table){
echo "2017转发文章赚钱源码,vscode创建运行指令,ubuntu ba sh,nfs挂载tomcat目录,sqlite如何向表中添加数据,爬虫创建,php结束for循环,龙岩seo优化推广公司,dnf辅助dll文件网站,html5全屏动画模板lzw
".$col." |
";
}
?>