标签:des style blog http ar 使用 sp for strong
foreach遍历数组 <?php /* * 数组的遍历 */ $language = array("French",‘German‘,‘Russian‘,‘Chinese‘,‘Hindi‘,‘Quechu‘); foreach ($language as $key => $value) { echo $key.‘=‘.$value.‘<br />‘; } ?>
关联数组的遍历
<?php /* * 关联数组的遍历 */ $userList = array(‘UserName‘=>‘Lilia‘,‘Gender‘=>‘female‘,‘Age‘=>‘23‘,‘School‘=>‘Peking University‘); foreach ($userList as $key => $value) { echo $key.‘=‘.$value.‘<br />‘; } ?>
标签:des style blog http ar 使用 sp for strong
原文地址:http://www.cnblogs.com/hellowzd/p/4158145.html