Use Trait Function with Same Name but Optionally
问题 PHP Class Using Same Name as Trait Function Refer to the question I just asked above here. Here was my original code. trait sampletrait{ function hello(){ echo "hello from trait"; } } class client{ use sampletrait; function hello(){ echo "hello from class"; //From within here, how do I call traits hello() function also? } } I can call the trait function like this thanks to the answer to the question. class client{ use sampletrait { hello as protected sampletrait_hello; } function hello(){