Junior PHP Developer Question:
How can we access the data sent through the URL with the GET method?

Answer:
In order to access the data sent via the GET method, we you use $_GET array like this:
www.globalguideline.com?var=value
$variable = $_GET[“var”]; this will now contain ‘value’
www.globalguideline.com?var=value
$variable = $_GET[“var”]; this will now contain ‘value’
Previous Question | Next Question |
Tell me how can you pass a variable by reference? | Explain how is it possible to set an infinite execution time for PHP script? |