Re: print with newline

From: Date: Mon, 04 Mar 2019 00:19:32 +0000
Subject: Re: print with newline
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-104566@lists.php.net to get a copy of this message
On Sat, Mar 2, 2019 at 10:26 PM Steven Penny <svnpenn@gmail.com> wrote: > 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. > > My apologies, I was obviously not being clear. What I should have said is that your request is bad and you should feel bad. Hope that clears things up! -Sara

« previous php.internals (#104566) next »