Re: print with newline

From: Date: Sun, 03 Mar 2019 03:36:50 +0000
Subject: Re: print with newline
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-104548@lists.php.net to get a copy of this message
On Sat, Mar 2, 2019 at 1:59 PM Steven Penny <svnpenn@gmail.com> wrote:

> with PHP, several methods are available to produce output:
> [[::snip::]]


<?php

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.

-Sara


Thread (36 messages)

« previous php.internals (#104548) next »