Jump to content

How to write a array in the cookie


raji20

Recommended Posts

Hello Guys,

            Hope u all are doing great. Can you suggest me how to write a array in the cookie, for eg,

[code=php:0]
        $var  =  array("1","2","3");
     
[/code]

Now I want to set a cookie which should store this array $var. I dont want to use for loop for storing the array value in the cookie

Can anyone help me............

Thanks a lot in advance
Link to comment
https://forums.phpfreaks.com/topic/26556-how-to-write-a-array-in-the-cookie/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.