- fclose: documentation ( source)
- feof: documentation ( source)
- fgets: documentation ( source)
- fwrite: documentation ( source)
- fopen: documentation ( source)
<?php
$file=fopen("text1.txt","a+");
$text = "Helle Student";
fwrite($file, "$text");
while (!feof($file)) {
fgets($file);
}
fclose($file);
?>