I have this code:
It gets a csv file and then what i want it to do is explode it into several variables.PHP Code:
$handle = fopen("info.csv", "r");
$data = fgetcsv($handle, 1000, ";");
$data2 = explode(",", $data);
echo $data2; // piece1
echo $data2; // piece2
I cannot get it to work. When i preview it all i get is "Array" on the page.
Am i doing something wrong?