special characters don't work (\n, \t, ...)

special characters don’t work (\n, \t, …)

what is the problem

[php]

<?php $string = "Hello \nWorld"; echo $string; ?>

[/php]

Output:
Hello World

Not:
Hello
World

should never be

Hello World

try
[php]

<?php $string = "Hello
World"; echo $string; ?>

[/php]

Thank you wilson382, it works well :slight_smile:

you are welcome.

Sponsor our Newsletter | Privacy Policy | Terms of Service