unserialize() [function.unserialize]: Error at offset 00000 of 0000 bytes

Read Time:17 Second

If serialize string contains ‘&’, then the error occurs when unserialize the string.

unserialize() [function.unserialize]: Error at offset 00000 of 0000 bytes

 

Simply change ‘&’ to ‘&’, by replacing it.

$string = str_replace('&', '&', $string);

$test_array = unserialize($string);

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.