Answers for "how to store array data in cookie using php"

PHP
3

php array in cookie

// Storing code
setcookie('your_cookie_name', json_encode($info), time()+3600);

// Reading code 
$data = json_decode($_COOKIE['your_cookie_name'], true);
Posted by: Guest on August-27-2020

Code answers related to "how to store array data in cookie using php"

Browse Popular Code Answers by Language