<?php $contents = "本文です" $hoge = <<< EOM <html> <head> </head> <body> $contents </body> </html> EOM; echo $hoge; ?>