Concatenation with a here document : here document « String « PHP






Concatenation with a here document

 
<?
$html = <<< END
<div class="$divClass">
<ul class="$ulClass">
<li>
END
. $listItem . '</li></div>';

print $html;
?>
  
  








Related examples in the same category

1.Interpolating in a here document
2.Defining a here document
3.More here documents
4.Printing HTML with a here document