Doc #69013 [NEW]: unclear/incomplete statement in echo documentation

From: Date: Sun, 08 Feb 2015 02:55:42 +0000
Subject: Doc #69013 [NEW]: unclear/incomplete statement in echo documentation
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11932@lists.php.net to get a copy of this message
From: teo8976 at gmail dot com Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:unclear/incomplete statement in echo documentation Description: ------------ --- From manual page: http://www.php.net/function.echo --- """ // Some people prefer passing multiple parameters to echo over concatenation. echo 'This ', 'string ', 'was ', 'made ', 'with multiple parameters.', chr(10); echo 'This ' . 'string ' . 'was ' . 'made ' . 'with concatenation.' . "\n"; """ "Some people prefer"? And is or isn't there a reason for that? According to http://www.mdproductions.ca/guides/50-best-practices-to-optimize-php-code-performance the first is more efficient. If that is true, it is of huge importance that it is mentioned ("Some people prefer .... because it's faster") If it's not, then it's worth stating that it is a false myth ("Some people prefer... but it makes no difference") In other words, Either they are equivalent, in which case you should replace "Some people prefer" with "The following are equivalent" or "produce the exact same result", or they are not, in which case the differences or advantages (other than mere taste) of one over the other need to be clarified. -- Edit bug report at https://bugs.php.net/bug.php?id=69013&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=69013&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=69013&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=69013&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=69013&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=69013&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=69013&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=69013&r=needscript Try newer version: https://bugs.php.net/fix.php?id=69013&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=69013&r=support Expected behavior: https://bugs.php.net/fix.php?id=69013&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=69013&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=69013&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=69013&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=69013&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=69013&r=dst IIS Stability: https://bugs.php.net/fix.php?id=69013&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=69013&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=69013&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=69013&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=69013&r=mysqlcfg

« previous php.doc.bugs (#11932) next »