Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

array_key_exists

Name: Anonymous 2012-02-19 13:57

Hey /prog/,

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. 

Any help? <3

Name: Anonymous 2012-02-19 15:10

Thanks for the response.

I saw that, however we aren't to use Isset.  we need to use array_key_exists, however a session value isn't contained in an array.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List