Home

Published

- 1 min read

php get query params

img of php get query params

The solution for this is noted below

php get query params

Solution

   // http://www.example.com/page.php?x=100&y=200
$queries = array();
parse_str($_SERVER['QUERY_STRING'], $queries);
echo $queries['x']; // 100
echo $queries['y']; // 200

Try other methods by searching on the site. That is if this doesn’t work