Jnr PHP/Codeigniter Developer Question:
Download Questions PDF

Do you know what is the difference between GET and POST?

Answer:

β˜› GET displays the submitted data as part of the URL, during POST this information is not shown as it’s encoded in the request.
β˜› GET can handle a maximum of 2048 characters, POST has no such restrictions.
β˜› GET allows only ASCII data, POST has no restrictions, binary data are also allowed.

Normally GET is used to retrieve data while POST to insert and update.
Understanding the fundamentals of the HTTP protocol is very important to have for a PHP developer, and the differences between GET and POST are an essential part of it.

Download Jnr PHP/Codeigniter Developer Interview Questions And Answers PDF

Previous QuestionNext Question
Tell me the value of the variable input is a string 1,2,3,4,5,6,7.
How would you get the sum of the integers contained inside input?
Tell me why is there a need to configure the URL routes?