1) What is a PHP Trait ?
Anonymous
PHP doesn't support multiple inheritance, but on the other hand you can use traits. You can define a trait by the keyword "trait" instead of "class", and then you write whatever the methods you want in that trait, and then you can use that trait in any class using the keyword "use traitName" and now you have all the methods with you in this class
Check out your Company Bowl for anonymous work chats.