摘要: 一、自定义函数 function add($a,$b){ $c=$a+$b; echo 'add test:'; echo $c; return $c; } add(1,2); 输出结果: add test:3 二、调用类里面函数 1、双冒号::,不用实例化,直接类名调用 class test{ p 阅读全文
posted @ 2015-10-09 16:01 木心月 阅读(472) 评论(3) 推荐(0) 编辑