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 to pick what array_intersect function to use in PHP?

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

How to block an IP address in .htaccess

How could you include a custom function for every single time PHP runs?

How to enable the rewrite engine in .htaccess?

What are some ways you can log debug messages and data in JS?

How to find an item by Primary Key in Eloquent, or throw a ModelNotFoundException exception if it isn't found?

What is Agile software development?

What is the difference between var, let and const in Javascript?

How to remove .php from the end of URLs with .htaccess