> From: Steven Penny <svnp...@gmail.com> > Sent: 04 March 2019 15:30 > To: internals@lists.php.net > Subject: Re: [PHP-DEV] print with newline > > I think the best option is a new function like "puts" or "posix_puts".
I'm fairly neutral on the feature, but I disagree with this being a function. It should be a language construct for parity with the echo and print. For what it's worth, I actually wrote an article about exactly this. Whilst it was more for didactic reasons (meaning that parts of the implementation could/should be changed), you may find it to be a nice read: https://phpinternals.net/articles/implementing_new_language_constructs_via_opcode_extending Cheers, Tom