

InterviewSolution
Saved Bookmarks
This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.
1. |
What is the use of final keyword? |
Answer» | |
2. |
What are interfaces in PHP? |
Answer» | |
3. |
What is function overriding? |
Answer» | |
4. |
How will you call member functions of a class in PHP? |
Answer» | |
5. |
How will you create objects in PHP? |
Answer» | |
6. |
How will you access the reference to same object within the object in PHP? |
Answer» | |
7. |
How will you add a destructor function to a PHP class? |
Answer» | |
8. |
How will you add a constructor function to a PHP class? |
Answer» | |
9. |
Can you create a class in PHP? |
Answer» | |
10. |
How will you parse an XML document using PHP? |
Answer» | |
11. |
How will you close a MySql database using PHP? |
Answer» | |
12. |
How will you create a MySql database using PHP? |
Answer» | |
13. |
How will you connect a MySql database using PHP? |
Answer» | |
14. |
What is the purpose of date() function? |
Answer» | |
15. |
What is the purpose of getdate() function? |
Answer» | |
16. |
How will you get the current date and time using PHP? |
Answer» | |
17. |
How will you retrieve formated string of trace in PHP when error occured? |
Answer» | |
18. |
How will you retrieve stack trace using Exception class in PHP when error occured? |
Answer» | |
19. |
How will you retrieve source line using Exception class in PHP when error occured? |
Answer» | |
20. |
How will you retrieve source filename using Exception class in PHP when error occured? |
Answer» | |
21. |
How will you retrieve code of exception using Exception class in PHP when error occured? |
Answer» | |
22. |
How will you retrieve the error message using Exception class in PHP when error occured? |
Answer» | |
23. |
How preg_split() function works? |
Answer» | |
24. |
How preg_match() function works? |
Answer» | |
25. |
How split() function works? |
Answer» | |
26. |
How eregi() function works? |
Answer» | |
27. |
How ereg() function works? |
Answer» | |
28. |
What is the purpose of $php_errormsg variable in PHP? |
Answer» | |
29. |
What is the purpose of $_PHP_SELF variable in PHP? |
Answer» | |
30. |
What is the purpose of $_SESSION variable in PHP? |
Answer» | |
31. |
What is the purpose of $_COOKIE variable in PHP? |
Answer» | |
32. |
What is the purpose of $_SERVER variable in PHP? |
Answer» | |
33. |
What is the purpose of $GLOBALS variable in PHP? |
Answer» | |
34. |
How will you access the error code associated with file upload in PHP? |
Answer» | |
35. |
How will you access the content type of the uploaded file in PHP? |
Answer» | |
36. |
How will you access the size of the uploaded file in PHP? |
Answer» | |
37. |
How will you access the actual name of the uploaded file in PHP? |
Answer» | |
38. |
How will you access the uploaded file in PHP? |
Answer» | |
39. |
What is the purpose of $_FILES variable in PHP? |
Answer» | |
40. |
How will you send an email using PHP? |
Answer» | |
41. |
How will you destroy the session? |
Answer» | |
42. |
How will you unset a single session variable? |
Answer» | |
43. |
How will you check if session variable is already set or not in PHP? |
Answer» | |
44. |
How will you access session variables in PHP? |
Answer» | |
45. |
How will you start a session in PHP? |
Answer» | |
46. |
How will you delete a cookie? |
Answer» | |
47. |
How will you make a check that a cookie is set or not? |
Answer» | |
48. |
How will you get cookies using PHP? |
Answer» | |
49. |
How will you set cookies using PHP? |
Answer» | |
50. |
Can you assign the default values to a function parameters? |
Answer» | |