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?
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’
Download Junior PHP Developer Interview Questions And Answers
PDF
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? |