I want to write an array to a file, but instead of looking like this:
array (
0 => 'Something 1
',
1 => 'Something 2
',
2 => 'Something 3
'
)
It should look like this:
Something 1
Something 2
Something 3
Is it possible? I'm currently using this method to write an array to a file:
file_put_contents('array.txt', var_export($array, TRUE));
file_put_contents($path, $array)