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:49

It is a cookie, but I just need to check for any value.  The cookie is being set based on user input, so the value could be anything.

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