http://il.php.net/manual/en/function.file.php http://il.php.net/manual/en/function.str-getcsv.php http://il.php.net/fgetcsv You can go through the lines and start buffering them when you get to 400, and stop the buffer and continue; the loop when you reach line 1400. On Sat, May 30, 2009 at 12:56 PM, shahrzad khorrami < shahrzad.khorrami@xxxxxxxxx> wrote: > hi, > > Is there any function in php to get data of a csv file from a line to > another line that we say? > for example get me data from line 400 to line 1400 of a csv file. > if > no function, what you recommend to get data? > > Thanks in advance, > Shahrzad >