Yes, the key to an array element is either an integer (should not start with 0) or an associative key, and not both.
You can access the elements either using a loop like this:
foreach ($_GET as $key => $value) { }
Either get the values ββas a numeric array, starting at key 0 with the array_values() function, or get the first value with reset() .
source share