I'm working on an assignment in my web developing class, and I can't for the life of me figure out how to check if a fucking session cookie has a value in it. We're supposed to use the array_key_exists function, but all google tells me is how to check for a specific value. I don't care about a specific value, I just need to check if the cookie has ANYFUCKINGTHING in it.
I tried array_key_exists("", $var) but no go. I'm missing something I think.
>>7
Yes... but ``value'' in this case could refer to the value associated with a [i]key{/i], so that you may look up the existence of a value in the hash table.
Just convene a key and check if it has something associated to it.