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

Push vs Pop vs Shift vs Unshift

How to group a SQL statement in brackets/parenthesis

How can you check if a variable is alphanum (alphanumeric, letters and numbers only) in PHP?

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

What is Bubble sort, and how to write an implementation of it in PHP

How to review blog posts (written by other users) before they get published on your WordPress blog?

How to block IPv6 IP addresses in .htaccess

What are Template literals (Template strings) in JS?

How to check if a string contains a certain substring?

When is __destruct called in PHP?