/ Published in: PHP
In a Project i had to save serialized arrays in a MYSQL Database, when i used that i got a Error Message for no reason (Error at offset XX of XX bytes in...). I wrote this little functions to fix that issue. (I dont recommend to save serialized Arrays in Databases )
Expand |
Embed | Plain Text
function save_serialize($ARR) { } function save_unserialize($STR) { }
Comments
Subscribe to comments
You need to login to post a comment.

u need to declare new var array before serialize to avoid error offset ..
btw why u put base64_encode?