+91 90691 39140 | +1 253 214 3115 | info@hub4tech.com | hub4tech

PHP Interview Questions and Answers

Tell something about PHP.

PHP stands for: Hypertext Preprocessor. PHP is a server side scripting language which is used to develop the dynamic websites.

What is MVC?

MVC stands for Model, View, and Controller. PHP MVC is an effective way to manage the code into 3 different layers.
Model: Model represents the information in application.
View: View represents the visual representation of information and data that you have entered in the application.
Controller: Controller is actually how and in which way you want to read the information in application.

What are the different types of CSS you can add in a page?

There are three types of CSS that can be added in a page.

  • External CSS.
  • Internal CSS.
  • Inline CSS.
Does PHP support multiple inheritances?

No, PHP support only single level of inheritance. A class can be inherited from a single class using keyword ‘extended’.

What is the difference between echo and print?

Initially both look same because both used to display any value. Main difference between echo and print is that echo is just used to display any string in output. It will display whatever is passed to it but on other hand print is a function itself it not only display any value but also can return value.

Copyright ©2015 Hub4Tech.com, All Rights Reserved. Hub4Tech™ is registered trademark of Hub4tech Portal Services Pvt. Ltd.
All trademarks and logos appearing on this website are the property of their respective owners.