![]() |
why result is 7? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: why result is 7? (/showthread.php?tid=31469) |
why result is 7? - El Forum - 06-20-2010 [eluser]pincs[/eluser] Code: <?php why result is 7? - El Forum - 06-20-2010 [eluser]daelsepara[/eluser] first statement: Code: // (1) + (2) + (3) = 7 second statement: Code: // (2) + (3) + (4) = 9 why result is 7? - El Forum - 06-20-2010 [eluser]InsiteFX[/eluser] Operator Precedence - SEE the PHP Manual. InsiteFX why result is 7? - El Forum - 06-20-2010 [eluser]pincs[/eluser] [quote author="daelsepara" date="1277110704"]first statement: Code: // (1) + (2) + (3) = 7 second statement: Code: // (2) + (3) + (4) = 9 i think first statment like this:2+3+4 Code: echo "i=".(++$i);//2 why result is 7? - El Forum - 06-21-2010 [eluser]InsiteFX[/eluser] Operator Precedence - SEE the PHP Manual. Code: <?php InsiteFX |