Ok...
First... $COOKIE() is bad... you must use $COOKIE[]...
Second... $_COOKIE["the_name_of_the_cookie"] will return the value of the cookie. If you modify it in PHP, the value will not be changed on the client-side...
Third, you must use setcookie() because a cookie is in fact a header which is sent to the user. You could write it yourself, but you have a function that exists just for that, so use it !
Also, if you use :
$_COOKIE("username" ,$value, mktime (0, 0, 0, 12, 31, 2015));
You'll get an error...
Suppose you have this :
$var1 = "strtolower";
$var2 = "LaLaLaLaLaAlAlAlAl";
$var3 = $var1($var2);
$var4 = strtolower($var2);
$var3 and $var4 will be the same...
Let's take $var3... it is defined like this : $var1($var2)
It takes the value of $var1 and it gives : strtolower($var2)
It then calls the strtolower() function and passes $var2.
In short, when you have a variable before a "(", it replaces that variable with its value and calls the function having the name of the value.
So, if you use $COOKIE(...), the value returned by $COOKIE is an array, so it can't work..
Is it clear ? (I don't think... !)