file stop when fullstop is encountered in php
$fptr = fopen('myfile.txt','r');
if(!$fptr)
{
die("Could not open file");
}
// it will read character by character
while($line = fgetc($fptr))
{
echo $line;
// stop when fullstop is encountered
if($line == '.')
{
break;
}
}