Well, given the answers, I felt I should put my 2 cents.
First of all, it depends on the project. I personally use PHP as a template engine, not a third-party one. This way, I keep my presentation logic in a βtemplateβ, which is just php markup that uses multiple echoes, but the echo operators simply reflect the relevant data, not the html code. Breaking in and out of PHP is not a bad practice if everything is done correctly.
, HTML "", HTML , ( , heredoc , foreach loop heredoc ). - / , / , <?php echo $data; ?>, , .
, . , 10 -, 100 -, html, , , , /.