merhaba <?php
function text($a){
$array = explode("n", file_get_contents('test_1_3_2021.txt'));
$text = '';
for ( $i=0; $i<$a; $i++ ) {
$text .= $array[$i]."<br/>";
}
$text = iconv("UTF-8","windows-1254",$text);
return $text;
}
echo text(10);
txt den veri çekiyorum ama _1_3_2021 kısmını nasıl o gündü tarihe göre otomatik aldırabilirim yani test_gün_ay_yıl.txt olarak otomatik çekebilme imkanı var mı ?