PHP use

1 개요[ | ]

PHP use
<?php
trait Greeter {
  public function greet() {
    echo 'hello';
  }
}

class Foo {
  use Greeter;
}

$foo = new Foo();
$foo->greet();

2 같이 보기[ | ]

3 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}