What does it mean when you have an @ in front of the variable? Example:
$var = @$_COOKIE["var"];
Thanks!
I thought it was so it wouldnt error out if the object, or file wasnt accessable or unable to process the info
am i right??
Yes, it is to supress error messages
So in my case before,
without the @, and if there was no cookie with that name, it would produce an error message, and this way if there is an error, the message wont be displayed and the script will continue. am i correct?
$var = @$_COOKIE[] should not generate an error message regardless if you have the @ sign. This is mostly used for supressing error messages in functions. Example.. @fopen will supress any error messages generated by fopen