Home > Q&A > body text
<?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?
小草2018-09-07 10:06:55
"<br>"This way
AWing2018-08-26 11:01:30
echo $name.', Hello<br />';
嘿哈2018-08-21 17:31:57
The line break in php is written like this "<br>"
No, that's html, right?
好名字2018-08-20 19:54:00
echo $name.',Hello'.PHP_EOL;
Thank you! !
Home
Course
Q&A
My