Horje
php multiple line string Code Example
php multiple line string
//use EOD function for multiple line variable
$variable=<<<EOD
  this is line1
  this is line2
  EOD;
Write Multi-Line Strings in PHP
phpCopy<?php
$mystring1 = "This is the first line." . PHP_EOL;
$mystring2 = "This is the second line" . PHP_EOL;
$mystring3 = "This is the third line" . PHP_EOL;
$mystring4 = "This is the fourth line" . PHP_EOL;
$mystring5 = "This is the fifth line";
$mystring1 .= $mystring2 .= $mystring3 .= $mystring4 .= $mystring5;
echo($mystring1);
?>




Php

Related
ipn listener paypel php Code Example ipn listener paypel php Code Example
wp-config.php define home page Code Example wp-config.php define home page Code Example
SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes Code Example SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes Code Example
how to add hour minute seconds in php datetime Code Example how to add hour minute seconds in php datetime Code Example
SQLSTATE[42000]: Syntax error or access violation: 1071 Code Example SQLSTATE[42000]: Syntax error or access violation: 1071 Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
14