I use a query string, for example test.php?var=1.
test.php?var=1
How can I check if a user types anything after that, like another string...
I try to redirect
Similar to Tom Haigh’s answer, you could also get the difference of the arguments you expect and those you actually get:
$argKeys = array_keys($_GET); $additionalArgKeys = array_diff($argKeys, array('var')); var_dump($additionalArgKeys);