Hey.
I'm having trouble with the length of one field in this array i read/write to a csv-file for my system here at work.
This is my code:
$linecontent[49] = $article;
$newarticle = str_pad("".$linecontent[49]."", 10);
$linecontent[49] = "\"".$newarticle."\"";
The trouble is that the length of the field [49] differs from line to line allthough I've used str_pad. Isn't that the whole idea about str_pad, or is my code wrong?
Help would be much appreciated.