Junior PHP Developer Question:

How can we access the data sent through the URL with the GET method?

Junior PHP Developer Interview Question
Junior PHP Developer Interview Question

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’


Previous QuestionNext 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?