<!DOCTYPE html>
<html>
<body>
<?php
trait message1 {
public function msgA() {
echo "My favorite color is red. ";
}
public function msgB() {
echo "My favorite number is 5. ";
}
}
trait message2 {
public function msgA() {
echo "My favorite color is blue. ";
}
public function msgB() {
echo "My favorite number is 7. ";
}
}
class MyClass {