note 30942 added to function.echo

From: Date: Thu, 03 Apr 2003 23:58:05 +0000
Subject: note 30942 added to function.echo
Groups: php.notes 
Request: Send a blank email to php-notes+get-46195@lists.php.net to get a copy of this message
Hmm ... if you use <? $i = 5; $j = 10; echo($i.'+'.$j.'='.$i+$j); ?> it will output only 15 If you use echo($i.'+'.$j.'='.($i+$j)); instead, it will output 5+10=15 as expected... :confused: -- http://www.php.net/manual/en/function.echo.php http://master.php.net/manage/user-notes.php?action=edit+30942 http://master.php.net/manage/user-notes.php?action=delete+30942 http://master.php.net/manage/user-notes.php?action=reject+30942

« previous php.notes (#46195) next »