- Код: Выделить всё • Развернуть
<?php
$file = "test.txt";
$text = file_get_contents($file);
$text = explode("\n", $text);
for($i=0; $i<count($text); $i++){
$text[$i] = explode(";", $text[$i]);
echo $text[$i][0].";";
echo $text[$i][1]."\n <br />";
}
?>