Originally developed by Rasmus Lerdorf
in 1994, PHP is one of the most used general-purpose programming languages. Originally born as a template language, during the years it evolved into a fully-featured language with proper OOP
(Object Oriented Programming) support. Its latest incarnation, 7.x
, introduced new features like return type declaration
for functions and huge performance improvements.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-reuse-php-code-effectively-introduction-to-php-traits