Just trying to remove the first line from a CSV in php. Can't use str_replace as the content varies.
Thanks in advance.
Just trying to remove the first line from a CSV in php. Can't use str_replace as the content varies.
Thanks in advance.
How you're trying to do ? can you show to us the code ?
You can do something like:
$i = 0;
while(fgetcsv() !== false) {
if ($i == 0)
continue;
// your code here ...
++ $i;
}