I am building my own template system. I am asking myself what is the best/fastest way to Output templated html. Example: body.php
Method1: Building a echostring
$layout = '
<body>
<div id="header">
        '.$header.'
</div>
</body>';
Method2: Html with encapsulated php areas
<body>
<div id="header">
      <?php  echo $header; ?>
</div>
</body>
What is your recommendation and why?
 
     
     
     
     
    