Ok, let's say you have something like this
PHP Code:
$thearray[0] = 'tim sean dan mick tom';
$thearray[1] = 'mary helen';
$thearray[2] = 'mike kelly fred dan liam dave jim ....';
So if you want to save the entire content of this array into a file, putting a | to separate each row then use,
PHP Code:
$data = implode('|',$thearray);
/*
This will produce
$data = 'tim sean dan mick tom|mary helen|mike kelly fred dan liam dave jim ....';
*/
Now, open a file for writing and insert $data, and that's it 
PHP Code:
$fh = fopen('filename'.'w')
fwrite($fh,$data);
fclose($fh);
Bookmarks