|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-09-29 06:41 UTC] mattw at getacard dot com
[2000-09-29 07:13 UTC] andi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Tue Jul 14 12:00:01 2026 UTC |
If $NumFixes = 2, then the following lines of code: echo("Num fixes: [" . $NumFixes - 1 . "]\n"); echo("Num fixes: [" . ($NumFixes - 1) . "]\n"); Produce this output: -1] Num fixes: [1] I assumed that the echo function, at least, worked the same way in PHP as it does in C. C doesn't have a concatenation operator though, and maybe this is as intended. (If it's not, then please fix it, because although the second line of code is "cleaner", the first line should work *anyway*.) - Matt Waggoner, mattw@getacard.com