<?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?
"<br>"This way
echo $name.', Hello<br />';
The line break in php is written like this "<br>"
echo $name.',Hello'.PHP_EOL;
"<br>"This way
echo $name.', Hello<br />';
The line break in php is written like this "<br>"
echo $name.',Hello'.PHP_EOL;