puoi anche usare serialize e base64

poi quando li riprendi fai l'inverso