F
F
Felix Rouvel2015-11-01 11:44:15
Text Processing Automation
Felix Rouvel, 2015-11-01 11:44:15

How to remove one word from the list?

Please tell me how to delete one word through the php document on the site in the file user.txt
In the file, for example, the list:
"Masha
Vanya
Petya
Dusya"
How can I delete the phrase Vanya and so that there is no space there. Thank you! If anything, write how to delete this particular phrase, and then I will replace it with the variable I need in my program.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey S., 2015-11-01
@Winsik

open the file for reading, read out, generate the corrected content, close, overwrite your
ps file Unless of course you have a file of reasonable size

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question