Answers for "php new line doesn't work"

PHP
0

php why "\n" not new line

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"
Posted by: Guest on July-13-2021
0

newline not working php

// When you run a PHP script in a browser, it will be rendered as HTML by default.
// Use <br /> instead or modify the header to content type plain text
echo "Hello <br /> World";
Posted by: Guest on November-27-2020

Browse Popular Code Answers by Language