I have a file named file.txt that looks like this:
- Line 1
- Line 2
- Line 3
- Line 4
using the command:
$content = file_get_contents(file.txt);
echo $content
I get the output on one line:
Line 1 Line 2 Line 3 Line 4
How can I get the output printed over 4 lines?