2016年10月23日

php数组

摘要: 101,"name"=>"张三","sex"=>"男"); //print_r($attr); //echo $attr["name"]; //遍历数组 //$attr = array("aa","bb","cc","dd"); //1.for循环遍历,只能遍历索引数组 /*for($i=0;$i"; }*/ //2.foreach遍历,关联索引都支持 /*foreach($attr a... 阅读全文

posted @ 2016-10-23 16:54 奔跑的葛根 阅读(127) 评论(0) 推荐(0) 编辑

导航