Forum Moderators: coopster
I need a bit of help creating an array from a vabialbe column number csv input file. The first row in the file are column headers. I'm trying to manually make the first line of the csv file:
$number,$mane,$min,$max,$allowed,$type,$description
import this as a string called $header_row and then use:
list(split(',',$header_row)) = split(',',$line)
to create variables OF the header row entries but the notation in wrong. Seeing as I don't know how many entries are in the $header_row string, how can I do this another way?
Thanks in advance,
Kevpatts