note 74735 added to function.echo

From: Date: Wed, 25 Apr 2007 18:39:04 +0000
Subject: note 74735 added to function.echo
Groups: php.notes 
Request: Send a blank email to php-notes+get-125861@lists.php.net to get a copy of this message
I noticed something new with echo: echo "You are viewing #" . $itemValue + 1 . " of a total of $announcementsCount announcements. <br />"; causes "You are viewing #" to not appear in the output. putting parenthesis around the math resolves the issue. echo "You are viewing #" . ($itemValue + 1) . " of a total of $announcementsCount announcements. <br />"; this may not be so much a bug as something that happens for a darn good reason. Im just not sure of the reason. ---- Server IP: 216.235.15.211 Probable Submitter: 204.50.74.131 ---- Manual Page -- http://www.php.net/manual/en/function.echo.php Edit -- https://master.php.net/note/edit/74735 Del: integrated -- https://master.php.net/note/delete/74735/integrated Del: useless -- https://master.php.net/note/delete/74735/useless Del: bad code -- https://master.php.net/note/delete/74735/bad+code Del: spam -- https://master.php.net/note/delete/74735/spam Del: non-english -- https://master.php.net/note/delete/74735/non-english Del: in docs -- https://master.php.net/note/delete/74735/in+docs Del: other reasons-- https://master.php.net/note/delete/74735 Reject -- https://master.php.net/note/reject/74735 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#125861) next »