Darren,

The UDF splits the line automatically into an array, you don't need to do it again.

If you have a csv file that contains
code:
Apple,Pear,"A bunch of bananas"

then
code:
$sourcearray=fnCSV2Array($sourceline)

Will give you an array that you can manipulate directly containing:



$sourcearray[0]=Apple
$sourcearray[1]=Pear
$sourcearray[2]=A bunch of bananas


[ 03. February 2003, 12:27: Message edited by: Richard H. ]