I’m trying to use the below code as an include for external text files. As such this is just normal paragraphs of text.
$filename = 'content.txt';
$fp = fopen($filename, "r");
$contents = fread($fp, filesize($filename));
My content.txt file (I used windows notepad looks like)
But for some reason, my output doesn’t have any line breaks. Instead it look like :
Line1 line2 line3 line4
Where am I going wrong?