How can I change a text file with a list of words, each on their own line (without commas), into one array, with comma separating?
I guess, what do you use to manipulate PHP arrays and strings to be able to interchange the data?
explode?
The file looks like this:
This
Is
The
File
I
Want
Changed
And I want it it to look like this:
array(
This,
Or,
This,
Or,
Even,
This
);