Sr. PHP Programmer Question:
Download Questions PDF

What is the difference between $_GET and $_POST?

Answer:

This is a great question because an interviewer can tell how deeply you understand HTTP and the request/response. If you don't have good understanding of HTTP protocol, google around and get a grasp on it.

Explain the HTTP protocol and how every request contains a method, generally(GET,POST,PUT,DELETE) and what each method signifies.

$_GET stores variables passed in url as query strings. $_POST stores variables past from using method = $_POST

Download Senior PHP Programmer Interview Questions And Answers PDF

Previous QuestionNext Question
What is the use of the function htmlentities?How to connect to a URL in PHP?