Re: print with newline
| From: | Ryan Jentzsch | Date: | Sun, 03 Mar 2019 05:50:05 +0000 |
| Subject: | Re: print with newline | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-104552@lists.php.net to get a copy of this message | ||
I've always wondered why PHP didn't have a built in command or function
that behaved as
echo but with a EOL.
I propose not to modify print or echo (as this was rightly pointed out
to cause b/c). How difficult would it be to add a new statement and/or
function to the PHP core called say / say() that has an EOL?
This seems to me to be simple to do. The benefit is less code to type in
user land (ex: say 'Hello World'; as opposed to `echo 'Hello World'
.
PHP_EOL;`