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 install jpegtran for Linux CentOS

Is multiple inheritance supported in PHP?

How to access the Laravel's route parameters outside of the controller?

How to hide certain file types from directory listings

How to get table column names from a database table in Eloquent?

What are Apache MPMs?

How to manually write your own pagination in PHP

How to add a name prefix to all routes in a group?

301 Redirect a single URL in .htaccess to a new location

How to block access to certain referrers in Apache using .htaccess