Hello everyone,
I used serialize function:
$sessItemIDArray had some values eg) 1,3,5
I wanted to store these values in $sessItems. I used serialize to do this. So now in my database table I have
a:2:{i:0;s:1:"5";i:1;s:1:"3";} which is alright. My code looked like this:
$sessItems = serialize(&$sessItemIDArray);
Now I want to take this information out and print the "1,3,5".
Heres the PROBLEM-I used unserialize:
$sessItems = unserialize($sessItems);
It prints "Array" though. Anyone know what's wrong?
Thanks for your time!