Return to Snippet

Revision: 77110
at August 22, 2019 20:56 by martinbrait


Initial Code
<?php
//le fichier doit préexister
$lines = file("fichier.txt");
foreach($lines as $n => $line){
echo $line . "<br />";
}
?>

Initial URL


Initial Description
Read a file with the file function

Initial Title
[php] [txtfile] Lire un fichier avec la fonction file

Initial Tags
line

Initial Language
PHP