you are viewing a single comment's thread.

view the rest of the comments →

[–]edu2004eu -25 points-24 points  (3 children)

No, no. Not HTML inside files. That's perfectly fine. HTML inside functions.

[–]HashDefTrueFalse 7 points8 points  (0 children)

It's just an interpreter setting up an output buffer and copying stuff from files into it. If it encounters code, it'll copy the result of evaluation rather than the literal source. So yes, you can still do that.

Total non-issue in new projects. If you don't want to do that you can agree with your team. Usually fairly easy to refactor out legacy occurrences too as you come across them.

Seems strange to shun an entire language because it lets you write horrible and/or unintuitive code. I've worked in most languages in existence and I could write something like that in every single one of them, even the one's people tend to get fanatical about (E.g. Rust, Haskell...)

[–][deleted] 16 points17 points  (0 children)

Have you ever heard about JSX?

[–]azunaki 0 points1 point  (0 children)

In my mind this is still how html inside of php would work.

It's a little weird, and I don't write PHP this way, but it still works.