PHP/File Directory/File Close
Close a file after reading
<?php
$fh = fopen("./demoCSV.csv", "rt");
while (!feof($fh))
echo fgets($fh);
fclose($fh);
?>
<!--
A,a@example.ru,11111
B,b@example.ru,22222
-->
<?php
$fh = fopen("./demoCSV.csv", "rt");
while (!feof($fh))
echo fgets($fh);
fclose($fh);
?>
<!--
A,a@example.ru,11111
B,b@example.ru,22222
-->