function text($a){
$array = explode("\n", file_get_contents('dosya.txt'));
$text = '';
for ( $i=0; $i<$a; $i++ ) {
$text .= $array[$i];
}
return $text;
}
echo text(10);
Pardon $i yazacağıma $a yazmışım
Teşekkür ettim ilginize, halledildi. + Puanınızı teslim ettim