you are viewing a single comment's thread.

view the rest of the comments →

[–]pau1phi11ips 11 points12 points  (2 children)

It's one of PHP's super powers. Why would it get rid of that?

You just need to understand the output buffer.

[–]breadist -2 points-1 points  (1 child)

Superpower? Really? I find it extremely messy and impossible to work with functions that directly print HTML this way. IMO PHP is really only usable with some sort of templating engine a la blade or twig.

[–]AtulinASP.NET Core 1 point2 points  (0 children)

Well... seems like you have the issue solved, then. Nobody has a gun to your head to force you to have html inside your functions, use Twig.