Answers for "php long string multiple lines"

PHP
6

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

Write Multi-Line Strings in PHP

phpCopy<?php
echo("This is the first line \nThis is the second line");
?>
Posted by: Guest on April-23-2021
0

Write Multi-Line Strings in PHP

phpCopy<?php
echo("This is the first line \n\nThis is the third line");
?>
Posted by: Guest on April-23-2021

Code answers related to "php long string multiple lines"

Browse Popular Code Answers by Language