method for creating PHP templates (ie html with variables)?

后端 未结 6 517
北恋
北恋 2021-02-04 21:22

I\'m designing my html emails, these are to be a block of html containing variables that i can store in a $template variable.

My problem comes with the storing in the va

6条回答
  •  粉色の甜心
    2021-02-04 21:54

    Have you tried using the heredoc syntax?

    $template = <<