Some Interview Questions and Answers for php developer

php Interview Questions And Answers
Q. What are types of errors in PHP?
Ans: 1. Notices. 2. Warnings. 3. Fatal Errors.
Q.Differences between GET and POST methods ?
ANS: GET : Data in get method is not secured. Data is displayed in the browser. There can be 1024 bytes send using this method. GET requests can be cached. GET requests remain in the browser history
POST : POST method is secure and not displayed in browser. There is no limit to post data using the POST method.
POST requests are not cached. POST requests does not remains in the browser history.

Q. How to find third maximum salary from salary table?
ANS: SELECT MIN(Emp_Salary) FROM Salary WHERE Emp_Salary IN(SELECT TOP 3 Emp_Salary FROM Salary ORDER BY Emp_Salary DESC).

Comments