Skip to content

Instantly share code, notes, and snippets.

@kamekoopa
Created July 11, 2011 16:41
Show Gist options
  • Save kamekoopa/1076244 to your computer and use it in GitHub Desktop.
Save kamekoopa/1076244 to your computer and use it in GitHub Desktop.
php5.4 first test
<?php
trait TraitTest {
public function sayHello(){
echo "Hello!";
}
}
class Test {
use TraitTest;
}
$test = new Test();
$test->sayHello();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment