$file = file("dat/news.dat"); for($position = 0; $position < count($file); $position = $position + 3) { echo '
' . $file[$position] . '
' . $file[$position + 1] . '
Date: ' . $file[$position + 2] . '