Jump to content

Edit Text File


millercj

Recommended Posts

Hi i'm looking for some guidance on a how-to if this is possible.

 

I want to edit a text file at specific points such as let say this is my file:

Hello: 5
Goodbye: 3

 

I know how to get the values (5 and 3) by using pregmatch() but is there a way that (using some sort of If statement) if a condition is true, Increment a value and return/save it to the respective tag (Hello or Goodbye)

Link to comment
https://forums.phpfreaks.com/topic/150315-edit-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.