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 add comments in PHP

How to redirect your website to a new domain/location in .htaccess

How to use Anonymous classes in PHP 7?

How to do comments in Blade files?

How to undelete a soft deleted Eloquent row?

How does PHP compare objects?

How to make multiple routes share the same URL structure or URL parameters

How to block multiple IP addresses in .htaccess

How to return JSON data to the user in Laravel?

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