Hi there,
implode()/explode() really only works for value-only/one-dimension array. If your array is more complicated than this, use serialize()/unserialize(). Use serialize() to flatten the array to write to your file, and unserialize() it (stored as one line) when you read it from the file.
HTH.