欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

PHP二维数组的表格输出

程序员文章站 2024-04-05 17:52:48
...
 array('lumia800','lumia900','lumia1520'),"apple" => array('iphone4s','iphone5c','iphone6s'),"msoft" => array('surface1','surface2','surface3'));$arr2 = array(array('lumia800','lumia900','lumia1520'),array('iphone4s','iphone5c','iphone6s'),array('surface1','surface2','surface3'));echo "
";foreach($arr2 as $key=>$val){echo "";foreach($val as $detail){echo "";}echo "";}echo "
".$detail."
";?>