I am looking for the correct way to open a text file to upload the content to a
array
Delete the first line and save the content in the same text file again.
without the deleted line I use this example:
<?php
$ra= file("datos.txt");
$s = unset($ra[0]);
$file = fopen("datos.txt", "w");
fwrite($file,$s);
fclose($file);
?>
The problem is that the result is a text file without content.
I hope some idea.