The test text file was actually an article, this example will look for full stops in the text and output each line as a new line.
<?php
$file = file_get_contents(“test.txt”);
$contents = explode(“.”,$file);
foreach ($contents as $content)
{
echo “$content<br/>”;
}
?>
