+ 16
How can we use the GET [ ] method in php.
please suggest a short code.
3 Respostas
+ 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.
+ 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/
+ 1
ill suggest a lesson
https://www.sololearn.com/learn/PHP/1841/