PHP - Interfaces and Traits
Which keyword is used in PHP to specify which trait method to use when two traits have conflicting method names?
insteadof keyword to resolve conflicts between trait methods with the same name.TraitA::methodName insteadof TraitB; to choose TraitA's method over TraitB's.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions