Cyber Monday Sale 40% off unlimited courses & creative assets! 40% off unlimited assets! Save Now
by
Lessons:18Length:2.3 hours
  • Overview
  • Transcript

5.4 Traits

PHP 5.4 introduced traits. A trait is a class container in which you can group a set of behaviours that can be later ‘plugged’ in any class. How’s that for reusable code? In this video, we’ll create a small Curl trait and and setter/getter trait. Then we’ll include both of them in a single class.

5.4 Traits

Back to the top