Junior PHP Developer Question:

Download Job Interview Questions and Answers PDF

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’

Download Junior PHP Developer Interview Questions And Answers PDF

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?