Menu
Hi, I am storing a json array in a cookie.
I later want to reassemble this array.
The json value in the cookie looks like this:
{“path”:”
When i try to use json_decode($_COOKIE[‘my_cookie’]) it returns nothing.
However, if i echo out the cookie value and then manaully paste it into the json_decode() surrounded by double quotes, it parses it fine.
Can anyone help me figure out why? I’ve tried used (string) before the cookie value.