Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- trait a{
- function ab(){
- echo "trait a";
- }
- }
- trait b{
- function ba(){
- echo "<br> trait b";
- }
- }
- trait c{
- use a,b;
- function abc(){
- $this->ab();
- $this->ba();
- }
- }
- class abx{
- use c;
- }
- $a=new abx;
- $a->abc();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement