$_GET
is an enumerated array.
That means, you can loop through the entire $_GET
array and check for 'variants'.
Meaning the parameter h1.u would be located in $_GET['h1.u'];
Searching could work like this:
foreach($_GET as $key => $value) {
if(strpos($key, "h1") !== false) {
//Do stuff
}
}
This code will iterate through the entire array and look for anything which contains 'h1' somewhere in it's key and do something with it.
strpos
will return boolean false
if it's not found, which is why you need to do a typecheck instead of checking for not 0
, since h1 could well be located at position 0 (first character)