Use the array function implode() to turn it into a string (which can be stored in the database), and then use implode() to turn it back into an array.
However, you should make sure your array elements do not contain whichever character you use to separate them when you use implode().