Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Filling up an array with empty elements
February 15, 2006, 9:52 pm
rate this thread
I am trying to parse a CSV file. I am counting on the fact that there
will be 10 entries per row
while (($data = fgetcsv($handle, 1000, ",")) != FALSE)
but that is not always true. Sometimes the array has less elements.
After I get my $data array, what is the quickest way to fill it up with
empty elements so that the total size is 10?