I'm sure there's an easy way to do this, but I can't think of it! So excuse me if its really obvious!
If I have a line of data from a csv file, and explode the line into
$item[1]
$item[2] etc
so in data1,data2,data3
data1 = $item[0]
data2 = $item[1]
my question is... if I write selected $item elements to a file, how do I count how many pieces of data (seperated by comma) on one particular line?
the count() function would count all the lines of the file from what I know
hope you can help
cheers