Advisory Board Interview Question: in php, how to get variable v... | Glassdoor

Interview Question

Software Engineer Interview Austin, TX

in php, how to get variable value from url

Answer

Interview Answer

1 Answer

0

$_GET['variable_in_query_sting'];
Emaple:\
Query String: http://www.example.com/index.php?a=test&b=123

php code:
var $a = $_GET['a'];
var $b = $_GET['b'];

Ciberoid on Jul 24, 2012

Add Answers or Comments

To comment on this, Sign In or Sign Up.