Some of the common basic questions in PHP includes


  • What is the difference between include_once and require_once. In how many ways you can include a file
  • Can you list down some of the array / string functions in PHP with usage
  • Are you familiar with OOPS. Please list down some of the OOPS concepts in PHP
  • What is the latest PHP version. What are the new features that are introduced in this latest version
  • How can you find a string inside another string.
  • What is the different between unset() and unlink()
  • How can you define constants in PHP and in how many ways
  • What is DRY principle
  • What are the best coding practices in PHP and what is coding standard you follow.
  • What are magic methods in PHP

Some of the basic questions you might be asked for PHP OOPS concepts

  • What is the difference between method overloading and method overriding
  • What is inheritance, how many types of inheritance PHP supports
  • What is encapsulation 
  • What is polymorphism
  • What is an abstract class
  • What is an interface
  • Difference between abstract class and an interface
  • What are traits in PHP. Write syntax.
  • Can you achieve multiple inheritance in PHP. If yes, explain with examples.
  • What is static and final keyword
  • What is a constructor

0 comments:

Post a Comment