Traits 有點類似繼承的概念. 基本使用方式: <?php trait testB { function getB1() { echo 'B1'; } } class testA { use testB; } $testAB = new ...
確定! 回上一頁