divakar.scm
divakar.scm

Reputation: 1266

New line didnt work in php even with double quotes and PHP_EOL

I dont know why new line didnt work with both double quotes and PHP_EOL.

<?php

echo "next line check\n";
echo "next line check1\n";
echo "next line check2" . PHP_EOL;
echo "next line check3";

?>

Above is my script. Below is the output i am getting.

next line check next line check1 next line check2 next line check3

Upvotes: 0

Views: 794

Answers (1)

erevos13
erevos13

Reputation: 411

I have the same problem. I think you can use this: <br/>

Upvotes: 2

Related Questions