Refresh

This website coolshell.cn/category/proglanguage/phpdev/page/2 is currently offline. Cloudflare's Always Online™ shows a snapshot of this web page from the Internet Archive's Wayback Machine. To check for the live version, click Refresh.

Browsed by
分类: PHP脚本

PHP v5.3的新鲜玩意

PHP v5.3的新鲜玩意

PHP v5.3马上就要release了,这里让我们看看他有一些什么样的新特性。

1)_callStatic() magic 方法

class Foo
{
    public static function __callStatic( $name, $args )
    {
        echo "Called method $name statically";
    } 

    public function __call( $name, $args )
    {
        echo "Called method $name";
    }
}

阅读全文 Read More

好烂啊有点差凑合看看还不错很精彩 (5 人打了分,平均分: 1.80 )
Loading...