- 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.
Top 20 PHP Interview Questions Answers Freshers
1. Who is the father of PHP ?
Answer - Rasmus Lerdorf is known as the father of PHP.
2.How does PHP work?
Answer - As a web design and scripting language, you can embed PHP into HTML or HTML5 code for designing an interactive website.
If you have some web template systems, web frameworks, or web content management systems, you can also combine PHP with them.
The processing of PHP code is done by an interpreter that is handled as a module in the server or as an executable in Common Gateway Interface (CGI). It is not uncommon to see developers execute PHP code using a command-line interface.
3. What is the difference between $name and $$name?
Answer - $name is variable where as $$name is reference variable like $name=jyoti and $$name=chaurasiya so $jyoti value is chaurasiya .
4. What are the method available in form submitting?
Answer - GET and POST
5.What is the difference between GET and POST?
Answer - There are many Difference