Hi guys,
I was hoping someone could help me with this. I have this code:
It's a pretty simple thing. The $string value is some array that was serialized from another function. When I attempt to unserialize it, it prints nothing! It's like the array just disappeared...is there something wrong with the serialized string or something? I used the serialize function from php...so I can't imagine that causing it?PHP Code:<?php
$string = <<<END
a:29:{i:0;s:1:"2";i:1;s:1:"2";i:2;s:1:"1";i:3;s:1:"1";i:4;s:1:"1";i:5;s:1:"7";i:6;s:1:"2";i:7;s:1:"3";i:8;s:2:"17";i:9;s:1:"1";i:10;s:1:"2";i:11;s:1:"2";i:12;s:1:"1";i:13;s:1:"2";i:14;s:1:"2";i:15;s:2:"31";i:16;s:2:"32";i:17;s:2:"31";i:18;s:1:"2";i:19;s:2
END;
echo $string;
print_r(unserialize($string));
?>
This is pretty frustrating







Bookmarks