Jump to content

Find line of code


evank3

Recommended Posts

look up fopen() for opening the file to be read and fclose() for closing it

 

I would suggest a for loop for counting through the lines and checking each line for a match.

Then add 1 to the counter before you add it into your found array to get the correct line number of your matches.

Have this continue through the end of the file.

 

Link to comment
https://forums.phpfreaks.com/topic/39969-find-line-of-code/#findComment-193267
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.