0

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
divakar.scm
  • 1,256
  • 5
  • 21
  • 32

1 Answers1

1

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

Orlando Herrera
  • 3,481
  • 1
  • 34
  • 44
erevos13
  • 351
  • 3
  • 12