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 can you check if a variable is alphanum (alphanumeric, letters and numbers only) in PHP?

How to view all installed PHP modules?

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

How to split a string into an array, in JS

Push vs Pop vs Shift vs Unshift

How to convert a string to an array of it's characters in PHP?

PHP Date commonly used formats

How to get a route to directly show a view?

How to create random numbers in JS?

How to autoload helper files with composer?