Jump to content

[SOLVED] Parsing out text file


AV1611

Recommended Posts

I'm parsing out a text file no problem, but I need to snip the first two lines every time. 

Is there an easy way other than setting up a counter that starts parsing on line three?

i.e.

$L=0
foreach ($lines as $line_num => $line) {
  if $L(>=2){
        parse;
        }
  else{
        $L++;}
  }
or whatever...
Link to comment
https://forums.phpfreaks.com/topic/32058-solved-parsing-out-text-file/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.