Re: print with newline
| From: | Steven Penny | Date: | Sun, 03 Mar 2019 04:26:38 +0000 |
| Subject: | Re: print with newline | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-104549@lists.php.net to get a copy of this message | ||
On Sun, 03 Mar 2019 03:36:50, Sara Golemon wrote:
function println(string $x): void { echo $x, PHP_EOL; } I hereby grant a public domain license to the above code and wish you godspeed bundling it into a composer package to be enjoyed by users of every active version of PHP.my request was not "how to print a newline with PHP". the request is for PHP to implement a builtin method that prints a newline *by default*. currently no method exists that i know of.