Blogger Information
Blog 6
fans 0
comment 0
visits 5218
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
foreach遍历数组
Pythonxzm
Original
778 people have browsed it
<?php
$arr=array(
   '教学部'=>array(
       array('李某','18','人妖'),
       array('高某','20','男'),
       array('张某','21','妖人'),
   ),
   '宣传部'=>array(
       array('李某','18','人妖'),
       array('高某','20','男'),
       array('张某','21','妖人'),
   ),
   '财务部'=>array(
       array('李某','18','人妖'),
       array('高某','20','男'),
       array('张某','21','妖人'),
   ),
);
foreach ($arr as $a => $b) {
	echo '<br/>'.'<font color="red">'.$a.'</font>'.'<br/>';
	foreach ($b as $key => $value) {
		foreach ($value as $x => $y) {
			echo $y.'  ';
		}
		echo '<br/>';
	}
}
?>

111.png

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!