摘要:
<?php #数组的定义方式1 $area = array("beijing","changsha","wuhan"); $areaCode = array("010"=>"beijing","0731"=>"changsha","020"=>"wuhan"); #数组的定义方式2 $student[] = "zhangsan"; $student[] = "li 阅读全文
摘要:
<?php #参数按引用传递 function Test(&$num) { $num += 200; } $c = 100; Test($c); echo "<br/>".$c; #默认参数值 function GetList($pageIndex = 1){ printf("<br/>当前获取第%d页的数据",$pageIndex); } GetList(); GetList(2); GetList(3); #函数返回多个值 function GetInfos(){ $info[] = "zhangsan 阅读全文