I can't figure out how to combine readfile() with <pre> tags so that the \n linebreaks in my text file are displayed properly.
// works but doesn't print line breaks echo readfile("filename.txt");
// doesn't work -- parse error
echo "<pre>readfile("filename.txt")</pre>";
// doesn't work -- parse error echo "<pre>{readfile("filename.txt")}</pre>\n";
Any tips to solve this?