repo.or.cz
/
hiphop-php.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Refactor the parsing and processing of configuration options ... just a bit ...
[hiphop-php.git]
/
hphp
/
test
/
slow
/
traits
/
1948.php
blob
b0162a9f0970fdae10dc241ed76b860ab2c58efe
1
<
?php
2
3
trait SayWorld
{
4
public function
sayHello
() {
5
echo
'Hello from trait!'
;
6
}
7
}
8
class
MyHelloWorld
{
9
public function
sayHello
() {
10
echo
'Hello from class!'
;
11
}
12
use
SayWorld
;
13
}
14
$o
=
new
MyHelloWorld
();
15
$o
->
sayHello
();
16
?
>
17