Vasanth Krishnamoorthy

Engineering Leader

PHP Traits – The Good, the Bad and the Ugly

Quite often we run into situations where we might have some methods that we would like to reuse in multiple classes, but they may not fit well due to the limitation of PHP’s single inheritance model. Today, we’ll look into traits which was introduced in PHP 5.4 to overcome these issues and where it should… Continue reading