I try to store array in cookie this way:
for($i=0;$i<5;$i++)
{
$field[]='test'.$i;
}
$_COOKIE['field2']=$field;
Is it possible do it that way?
I don't want to store each value of array list store separately. I'd like to store them at once. If I was storing values just to another "normal" variable (not cookie), I would do it this way:
for($i=0;$i<5;$i++)
{
$field[]='test'.$i;
}
$normalVariable=$field;
Can I use similar method to store to cookies?