Answers for "how to put multiple lines in php echo"

PHP
7

php multiple line string

//use EOD function for multiple line variable
$variable=<<<EOD
  this is line1
  this is line2
  EOD;
Posted by: Guest on June-09-2020
0

PHP echo multiple lines example Using Nowdoc

<?php
//Nowdoc variable
$var=<<<'EOD'
We
\tWelcome
You
On
Our
Softhunt
Website
EOD;
echo $var;
?>
Posted by: Guest on December-29-2021

Code answers related to "how to put multiple lines in php echo"

Browse Popular Code Answers by Language