“Newline in PHP” Code-Antworten

PHP Newline

"\r\n"
Unusual Unicorn

neue Linie in PHP

<?php
echo "Hello world this is example \r\n in php.";
echo "<br>";
echo nl2br("You will find the \n newlines in this string \r\n on the browser window.");
?>
Ankur

Newline in PHP

<?php
 echo nl2br("If you want that '\n' works. \n Then use nl2br() function!");
 echo "<br> can also be used.";
 echo "nl2br() is in-built function whereas <br> is html tag";
?>
Wandering Worm

PHP neue Linie

echo "\n";
hateschoollovecoding

Neue Linie PHP

echo "<br>";
xSynergyx

PHP warum " n" keine neue Zeile

if "test\n" not return, new line
  1st solution:echo "test".PHP_EOL;
  2nd solution:<?php header('Content-type: text/plain'); ?>
  3rd solution:"<br />" instead of "\n" or "\r\n" 
CuteKittyCat

Ähnliche Antworten wie “Newline in PHP”

Fragen ähnlich wie “Newline in PHP”

Weitere verwandte Antworten zu “Newline in PHP” auf PHP

Durchsuchen Sie beliebte Code-Antworten nach Sprache

Durchsuchen Sie andere Codesprachen