I have this simple code that reads an arch; notes.txt. The last data leaves them down and not up, that is normal for how they are saved, but how can I make them read from bottom to top.
<?php
$ar = fopen("notas.txt","r") or die("NULL");
while (!feof($ar)){
$linea = fgets($ar);
$lineasalto = nl2br($linea);
echo $lineasalto;
}
fclose($ar);
?>