Skip to content

Instantly share code, notes, and snippets.

View A-新特性.md

##PHP 5.4新特性##

掌握

  • traits
    trait的引入,可以扩展class的内容,使class在某种形式上实现了多重继承,更加灵活,trait不能被实例化 示例代码:

    <?php
    trait Hello {
    
You can’t perform that action at this time.