2017年2月24日

php中的__call()函数重载

摘要: 结果: 阅读全文

posted @ 2017-02-24 11:09 Perl6 阅读(378) 评论(0) 推荐(0) 编辑

php中使用static方法

摘要: 1 <?php 2 3 class Char{ 4 public static $number = 0; 5 public static $name; 6 7 function __construct($what){ 8 self::$name = $what; 9 } 10 public stat 阅读全文

posted @ 2017-02-24 08:42 Perl6 阅读(1003) 评论(0) 推荐(0) 编辑

php中类的static变量使用

摘要: 1 name = $what; 11 } 12 function Join(){ 13 self::$number++; 14 echo self::$number," Is :",$this->name,""; 15 } 16 17 } 18 19 $test = range('a','z'); 20 foreach($te... 阅读全文

posted @ 2017-02-24 08:19 Perl6 阅读(898) 评论(0) 推荐(0) 编辑

导航