Welcome Guest, Not a member yet? Register   Sign In
why result is 7?
#1

[eluser]pincs[/eluser]
Code:
<?php
$i=1;
echo "i=".(++$i)+(++$i)+(++$i); //result 7
//but echo (++$i)+(++$i)+(++$i); result is 9
?>


Messages In This Thread
why result is 7? - by El Forum - 06-20-2010, 09:27 PM
why result is 7? - by El Forum - 06-20-2010, 09:58 PM
why result is 7? - by El Forum - 06-20-2010, 10:20 PM
why result is 7? - by El Forum - 06-20-2010, 11:27 PM
why result is 7? - by El Forum - 06-21-2010, 12:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB