HTML + PHP Concatenation

1

Can anyone give me a light on best practice of concatenation of variable.

I'm doing this:

    $html="
    <td>
              <span class='campotitulo'>";
              echo $dadosboleto["codigodebarras"];
              $html = $html."</span>
    </td>";

Is there any more practical way? I have 700 lines to concatenate html and php.

* The final result of $ html will be used in mPDF to generate a PDF page.

    
asked by anonymous 04.09.2017 / 03:16

1 answer

1

You do so

$html="<td><span class='campotitulo'>".$dadosboleto["codigodebarras"]."</span></td>";
    
04.09.2017 / 03:24