0

Hello I just read a document using PHP and I need to skip the first 58 lines of that document and then start sending the data that follows from those lines to my database. How do I go about skipping the first 58 lines of the document.

I really need help thank you in advance.

3
Contributors
5
Replies
10
Views
5 Years
Discussion Span
Last Post by kgizo
0

Maybe you are looking for:

$str = implode("\n", array_slice(explode("\n", $str), 58));

while $str is your document content and 58 the lines to be skipped

-Agarsia

0

Okay, mschroeder your help is really appreciated.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.