PHP short notes
Both get and post creates an array (get and post are superglobals).
$_GET is an array of variables passed to the current script via the URL parameters.
$_POST is an array of variables passed to the current script via the HTTP POST method.
When to use Get and Post-> get is used for less secure information however passwords couldn't be used with get and post is used to transfer form information(multipart binary input).
Subscribe to my newsletter
Read articles from Laiba Razi Khan directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
Laiba Razi Khan
Laiba Razi Khan
I've got accomplished web development with expertise in various programming languages including PHP, Laravel, C#, and C++. My curiosity to learn more and my passion for coding drives me to constantly enhance my skills and create exceptional digital experiences.