Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
How can i delete all of the file content?
2 ответов
0
you can use the following code.
$file = fopen("file.txt","x");
it will delete all your previous data in file.
0
fopen with x-permisson.