You are here: Filling up an array with empty elements « PHP Programming Language « IT news, forums, messages
Filling up an array with empty elements

Posted by laredotornado on 02/15/06 23:52

Hello,

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?

Thanks, -Dave

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация