Horje
How to extract first Five Line from a TXT File in PHP | PHP Tutorial Code
Follow the Example.

index.php
Example: PHP
<?php
$file_out = file("f.txt"); // Read the whole file into an array

//Delete the recorded line
unset($file_out[0]);
unset($file_out[1]);
unset($file_out[2]);
unset($file_out[3]);
unset($file_out[4]);



//Recorded in a file
file_put_contents("f.txt", implode("", $file_out));

?>




Read Full::
PHP Delete String Code
Category:
PHP Tutorial Code
Sub Category:
PHP Delete String Code
Uploaded:
1 week ago
Uploaded by:
Admin
Views:
15
Tested on:
PHP 7

Related Articles
How to extract first Five Line from a TXT File in PHP

More Articles
How to remove first Five Line from a TXT File in PHP PHP Delete String Code

Share on: