Unserialize - Error at offset 0 of 64 bytes

守給你的承諾、 提交于 2020-01-04 01:00:33

问题


Getting this error :

echo $addressStr;
$address = unserialize($addressStr);

Echo returns

2:{i:0;s:18:"address:1,NN15 6TU";i:1;s:18:"address:8,NN15 6TU";}

Error returns

Notice: unserialize() [function.unserialize]: Error at offset 0 of 64 bytes in C:\wamp\www\guild_service\server\map_view.php on line 115


回答1:


Your string is indeed something missing. I think it may need 'a:' in the front



来源:https://stackoverflow.com/questions/7336311/unserialize-error-at-offset-0-of-64-bytes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!