20 OOPS Interview Questions in PHP (Part -1)

Below are some of the technical questions expected in OOP – PHP interview.

  1. What is PHP, and what are its features?
  2. What is the difference between PHP4 and PHP5?
  3. What is the latest version of PHP, and what are its new features?
  4. How can you enable error reporting in PHP?
  5. What are the different types of errors that can occur in PHP?
  6. How can you connect to a MySQL database in PHP?
  7. What is the difference between include() and require() functions in PHP?
  8. How can you set and get cookies in PHP?
  9. What is the difference between session and cookie in PHP?
  10. What is the use of the header() function in PHP?
  11. What is the use of the isset() function in PHP?
  12. What is the difference between GET and POST methods in PHP?
  13. What is the use of htmlentities() function in PHP?
  14. How can you upload a file in PHP?
  15. What is the use of addslashes() function in PHP?
  16. How can you prevent SQL injection in PHP?
  17. What is the use of explode() function in PHP?
  18. What is the use of implode() function in PHP?
  19. What is the use of count() function in PHP?
  20. What is the use of array() function in PHP?

Leave a comment