错误:
Notice: unserialize() [function.unserialize]: Error at offset 0 of 126 bytes in C:\wamp\www\web_service\client.php on line 224
错误的
代码 1:
$data = array('table'=>'users', 'operation'=>'select', 'uid'=>'yoyo');
$data = serialize($data);
print_r(unserialize($data));
代码 2:
$data = array('table'=>'users', 'operation'=>'select', 'uid'=>'yoyo');
$data = base64_encode(serialize($data));
print_r(unserialize(base64_decode($data)));
以上两者都给出了相同的错误。知道为什么吗?
谢谢
看着这些;