I have a file with information formated like so:
field1, field 2, field 3, file4
field1, field 2, field 3, file4
field1, field 2, field 3, file4
field1, field 2, field 3, file4
out of this file I need to create an array like so
$file[]=(
"field 1" = field1
"field 2" = field2
"filed 3" = filed3
"field 4" = field4
);
I'm want to use fopen and readfile to read the file line by line, and break up each element by comma. with each line restarting the array.
how would I go about doing this?