Can line breaks be achieved?
vec
vec 2018-08-20 17:27:01
0
6
1773

<?php

$greet = function($name)

{

echo $name.', Hello';

};

$greet('tomorrow');

$greet('PHP Chinese website');

?>

Tried I added \n and br at the end but it doesn't work. Is there any way to achieve line breaks?

vec
vec

reply all(4)
小草

"<br>"This way

AWing

echo $name.', Hello<br />';

嘿哈

The line break in php is written like this "<br>"


  • reply No, that's html, right?
    vec author 2018-08-22 14:37:46
好名字

echo $name.',Hello'.PHP_EOL;

  • reply Thank you! !
    vec author 2018-08-21 09:42:26
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template