PHP: Traits - Manual - PHP: Hypertext Preprocessor
The best way to understand what traits are and how to use them is to look at them for what they essentially are: language assisted copy and paste. If you can copy and paste the code from one class to another (and we've all done this, even though we try no...