\n does not add a new line break

Hello,

I am trying to learn the PHP language on Codecademy.com and while using their built-in code editor, the \n adds a new line break, using the PHPStorm doesn't add a line break.

Here is my simple example:

Screenshot: https://ibb.co/sQ0q9YD

Any help with this, please?

Thank you

<?php
echo "Hello, Learner!";
echo "\nWe hope you enjoyed this lesson.";
echo "\nAre you excited?" . "\nTo learn more?";

0

Hi there,

You better ask this on PHP learning forums as this is not PhpStorm related issue.

In any case: where it does not add the new line/line break? In console (CLI script) or in a web browser? Show a screenshot that would illustrate the actual issue.

0

请先登录再写评论。