I dont know how to echo a new line in PHP. I have tried echo "\n" but it does not work.
I want to echo new lines in the following code.
Code:
if (file_exists($fName)) {
echo "CreationTime: ".$CreationTime.
"CurrentTime: ".$CurrentTime.
"after ".($fLifeTime)." Days from Creation: ".$fAge;
}
IF you are looking this output from a browser, you must use
<br />tag or, put<pre>before your echo.For new line
example.
pre example