Inheritance has three types, are given below.

  • Single inheritance
  • Multiple inheritance
  • Multilevel inheritance

But PHP supports only single inheritance, where only one class can be derived from a single parent class. We can do the same thing as multiple inheritances by using interfaces.

Note: Before getting confused with the plethora of PHP interview questions for experienced, you need to ensure the basics. This question will help you to understand the core basics of php and make you even more confident enough to jump onto the advanced questions.

BY Best Interview Question ON 06 Jul 2020