Unserialize bug?
| From: | Leon Mergen | Date: | Wed, 21 May 2003 22:33:13 +0000 |
| Subject: | Unserialize bug? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-148463@lists.php.net to get a copy of this message | ||
Hello,
I'm currently experiencing a little problem with unserializing an
array-in-array. This is the relevant part of my code:
<?
echo "basketarray : $basketarray\n\n";
echo "Unserialized:\n";
print_r(unserialize($basketarray));
?>
and it shows
basketarray : a:1:{i:23;a:2:{i:0;s:6:\"item14\";i:1;s:6:\"item29\";}}
Unserialized:
so basically, the array doesn't get unserialized properly. Anyone has any
workaround or fix for this?
Tx.
Grt,
Leon