Answer the question
In order to leave comments, you need to log in
Accepting cookies. Why is it returning an array?
If I send a cookie with the name "visitCounter" - returns an array. And if, for example, with the name "user" - returns the value "John". Confused.
setcookie("visitCounter", "John");
$visitCounter = $_COOKIE['visitCounter'];
echo $visitCounter; // Array
Answer the question
In order to leave comments, you need to log in
Perhaps this is a subjective opinion, but ASUS is not the most Linux-friendly manufacturer, so to fix problems with hardware, you will need a long and tedious digging in forums, manuals and configs
$_COOKIE is a super-global array like $_POST and $_GET and anything that starts with $_
do print_r($_COOKIE); and see what it shows. This is an associative an array with cookies, the keys of which are the names of the cookies, and the values are respectively. cookie values.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question