[PHP-BUG] Req #74362 [NEW]: Make echo and print equivalent
[email protected] ("olafvdspek at gmail dot com") Sun, 2 Apr 2017 12:42:43 GMT
| Newsgroups | php.standards |
|---|---|
| Message-ID | <[email protected]> |
From: olafvdspek at gmail dot com
Operating system:
PHP version: Irrelevant
Package: PHP Language Specification
Bug Type: Feature/Change Request
Bug description:Make echo and print equivalent
Description:
------------
Could print be made equivalent to echo such that it accepts multiple
arguments?
> The only difference to print is that echo accepts an argument list.
> The only difference to echo is that print only accepts a single
argument.
http://php.net/echo
http://php.net/print
Test script:
---------------
<?php
echo('A', 2, 'C');
print('A', 2, 'C');
Actual result:
--------------
-
--
Edit bug report at https://bugs.php.net/bug.php?id=74362&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74362&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74362&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74362&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74362&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74362&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74362&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74362&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74362&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74362&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74362&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74362&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74362&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74362&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74362&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74362&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74362&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74362&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74362&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74362&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74362&r=mysqlcfg