What's the difference between $_cookies['name']='value' and setcookies | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What's the difference between $_cookies['name']='value' and setcookies

In cookies we can declare values by two methods $_cookies['name']='value' and setcookies() is there any difference and usage for above mentioned?

17th May 2017, 3:53 AM
Ramkumar Subramaniam
Ramkumar Subramaniam - avatar
1 Answer