I\'m trying to understand why, on my page with a query string, the code:
echo \"Item count = \" . count($_GET);
echo \"First item = \" . $_
Yes, the key of an array element is either an integer (must not be starting with 0) or an associative key, not both.
You can access the items either with a loop like this:
foreach ($_GET as $key => $value) {
}
Or get the values as an numerical array starting with key 0 with the array_values() function or get the first value with reset().