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

How do you run a PHP script from the command line?

How do you launch the PHP interactive shell?

How to select what columns to return when calling ::all()

Push vs Pop vs Shift vs Unshift

How to replace whitespace with a single space

How to block multiple IP addresses in .htaccess

How to output (echo/print) content in PHP

How to force gzip compression in Apache with .htaccess

What is snake case?

What are generators in PHP, and how do they compare to arrays?