Implode-explode is a good (and easy) solution for simple arrays, you just need to make sure that whatever character you use as delimiter is not contained in any array element.
To be able to fully restore associative or complex multidimensional arrays, you'd probably be better off with serialize-unserialize.