Jump to content

Recommended Posts

ive searched for about 30 minutes on google and cant figure out how to read a line from text..  say i want to set line 15 from textfile.txt to a variable?  i did a foreach ($lines as $line_num => $line) loop to read the entire file line by line but i am making a table for the text that it reads and in order for it to work, i need to read the line after the one the foreach loop is on, in order to set the rowspan of the table.
Link to comment
https://forums.phpfreaks.com/topic/15549-who-do-i-read-a-paticular-line-from-text/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.