Is multiple inheritance supported in PHP?

PHP: Is multiple inheritance supported in PHP?

Nope! You can extend a class only once. You can, however, use traits.

webdevetc profile pic

I am a 29 year old backend web developer from London, mostly focusing on PHP and Laravel lately. This ( is my blog where I write about some web development topics (PHP, Laravel, Javascript, and some server stuff). contact me here.


Comments and discussion about Is multiple inheritance supported in PHP?

Found this interesting? Maybe you want to read some more in this series?

Or see other topics in the PHP language

Or see other languages/frameworks:
PHP Laravel Composer Apache CentOS and Linux Stuff WordPress General Webdev and Programming Stuff JavaScript
Or see random questions

When is __destruct called in PHP?

How to make Apache force download of files (in .htaccess)

How to set the timezone to UTC in .htaccess

How to use subdomains as parameters in your routes (or in your web.php file)

How to check if a relation was loaded on an Eloquent model already?

How to hide the server signature (hide Apache info) from HTTP headers with .htaccess

What is an example of an object literal?

How to install and use jpegoptim on Linux CentOS

A list of operators on Eloquent's where() method

How to autoload helper files with composer?