Loading [MathJax]/jax/element/mml/optable/BasicLatin.js

05 2013 档案

摘要:<?php #数组的定义方式1 area = array("beijing","changsha","wuhan"); areaCode = array("010"=>"beijing","0731"=>"changsha","020"=>"wuhan"); #数组的定义方式2 student[] = "zhangsan"; student[] = "li 阅读全文
posted @ 2013-05-22 23:47 玻璃鱼儿 阅读(234) 评论(0) 推荐(0) 编辑
摘要:<?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 阅读全文
posted @ 2013-05-22 22:26 玻璃鱼儿 阅读(149) 评论(0) 推荐(0) 编辑
摘要:<?#asp风格短标记 echo "hello world!<br/>";?><?php date = "2013-5-21";?><p>today's date is <?php echo date;?></p><?php print("<br/>print test!"); name = "zhangsan"; age = 20; printf("<br/>name:%s,age:%d 阅读全文
posted @ 2013-05-21 23:32 玻璃鱼儿 阅读(207) 评论(0) 推荐(0) 编辑
摘要:地址:http://www.cnblogs.com/haython/archive/2012/03/23/2413716.html 阅读全文
posted @ 2013-05-11 09:14 玻璃鱼儿 阅读(137) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示