PHP Interview Questions and Answers

In this section, I have selected advanced php interview questions and answers for all levels of candidates(entry level, advanced level, expert level).
Last few months I have been working to select best question and answer set for PHP-MySQL interview questions.I have written some php tutorials.

Here is some PHP Interview Questions:

  1. What is Object Oriented Programming?
  2. Explain about UML?
  3. Advantages of object oriented programming?
  4. What is a Class ?
  5. What is an Object ?
  6. What is the relation between Classes and Objects?
  7. What are different properties provided by Object-oriented systems ?
  8. Explain about abstraction?Explain about encapsulation?
  9. What is an Abstract class?
  10. What is an Interface?
  11. What are Abstract methods?
  12. What is the difference between Abstract classes and Interfaces ?
  13. What is difference between Static and Non-Static fields of a class ?
  14. Static Keyword?
  15. Static Methods and Properties?
  16. What is a constructor in class?
  17. What is a Destructor in Class?
  18. What are access modifiers?
  19. What is serialization?
  20. Explain about inheritance in OOPS?
  21. Explain the usage of encapsulation?
  22. Explain about polymorphism?
  23. Give the syntax of GRANT commands?
  24. Give the syntax of REVOKE commands?
  25. What is the difference between CHAR and VARCHAR data types?
  26. How can we encrypt and decrypt a data present in a mysql table using mysql?
  27. How To Remove White Spaces from the Beginning and/or the End of a String in PHP?
  28. How to Find a Substring from a Given String in PHP?
  29. How To Replace a Substring in a Given String in PHP?
  30. What is meant by MIME?
  31. What is the difference between GROUP BY and ORDER BY in SQL?
  32. What are the MySQL database files stored in system ?
  33. How Many Ways to Include Variables in Double-Quoted Strings in PHP? 
  34. How Many Ways to Include Array Elements in Double-Quoted Strings using PHP? 
  35. How To Access a Specific Character in a String using PHP? 
  36. How To Assigning a New Character in a String using PHP? 
  37. What are the functions for IMAP?
  38. What are encryption functions in PHP?
  39. count/number of elements of an array?
  40. How to set cookies in PHP?
  41. How to reset/destroy a cookie in PHP?
  42. How can I know that a variable is a number or not using a JavaScript?
  43. What is the use of friend function in PHP?
  44. What is maximum size of a database in mysql?
  45. What Are the Special Characters You Need to Escape in Single-Quoted Stings?
  46. Can You Specify the "new line" Character in Single-Quoted Strings?
  47. What Are the Special Characters You Need to Escape in Double-Quoted Stings?
  48. How Many Escape Sequences Are Recognized in Double-Quoted Strings in PHP? 
  49. How To Include Variables in Double-Quoted Strings in PHP?
  50. How To Concatenate Two Strings Together in PHP? 
  51. How To Compare Two Strings with Comparison Operators in PHP? 
  52. How To Convert Numbers to Strings in PHP? 
  53. How To Get the Number of Characters in a String?
  54. How To Take a Substring from a Given String in PHP?
  55. What Is a Persistent Cookie in PHP?
  56. How can we encrypt the username and password using PHP?
  57. How To Protect Special Characters in Query String?
  58. What are the differences between DROP a table and TRUNCATE a table?
  59. Are objects passed by value or by reference?
  60. Would you initialize your strings with single quotes or double quotes?
  61. What is the difference between the functions unlink and unset?
  62. How can we extract string abc.com from a string http://info@abc.com using regular expression of php?


<< Previous Page  Current Page  Next Page>>