How can we use the GET [ ] method in php. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 16

How can we use the GET [ ] method in php.

please suggest a short code.

20th May 2018, 5:32 AM
Arpit Mittal
Arpit Mittal - avatar
3 Answers
+ 3
Check this code: https://code.sololearn.com/wZ0OyJx3KhJd/?ref=app Unfortunately, Sololearn has limitations. The code will not run the way it should. You'll need a running server to really understand much of PHP.
20th May 2018, 6:11 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
+ 4
$_GET[] is a superglobal variable used to obtain form-data, not a method. In w3schools you have some simple examples of its use: https://www.w3schools.com/php/php_forms.asp If you refer to the magic __get() method, then this best is to review this article. It explains very clearly the magical methods and has several practical examples: https://www.culttt.com/2014/04/16/php-magic-methods/
20th May 2018, 5:56 AM
Mickel
Mickel - avatar
20th May 2018, 5:53 AM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar