4
pereira
7y

Is it OK to put HTML code into PHP? I just did it and I feel like I'm doing a terrible abomination

Comments
  • 2
    If not using any templating like twig etc maybe just fully escape out so it not html in php but php in html? And opening closing tags are nice indicators to still keep some structure in code.
  • 2
    With side note of it depends.
  • 1
    People used to put PHP in html.

    Either way you do it, it feels like putting an egg in a gun or a gun in an egg. It's just wrong... how ever you choose to do it
  • 1
    Its funny because we even put html on our js :P
  • 1
    @Froot haha Php is an egg
  • 0
    Well, that is what it does, you put HTML in Php, you put Php in HTML
  • 1
    @mundo03 I'd rather you didn't put PHP in anything. It's kind of offensive you know
  • 0
    @Froot well, I have the right to offend and you have the right to be offended.

    Beyond that, nothing really matters.
  • 1
    @mundo03 True that
Add Comment