Ok I have an associative array contains data that should be downloaded in a file and then imported later to use the same data later.
it looks like this (only some keys contain arrays):
array(
'id1' => 'Data1',
'id2' => 'Data2',
'id3' => 'Data3',
'id4' => 'Data4',
'id5' => array(
'id1' => 'Data1',
'id2' => 'Data2',
'id3' => 'Data3'
)
);
so what is the best way to do this ?
Try serialize:
And to read: