This is an array_walk style serialize that works with multi dimensional arrays, it also base64 encodes and decodes to allow ‘;’ to exist in the array.
PHP addslashes to an Array
This is for a solution for adding slashes to a $_POST array when you don’t know if magic quotes is turned on.