0

Languages of programming PHP Can some one help please!

What output results from the following code? <?php $num = 18; $num--; echo $num; ?>

14th Dec 2017, 8:06 PM
MUNTO
1 Antwort
+ 7
<?php $num = 18; //assignmed 18 to num $num--; //postdecrement echo $num; //print number after decrement ?> output of this code is 17 because due to post increment property in first step value store in num then in next step if num is again come then it use the deferment by 1 value of num and print it so the output is 17 https://www.sololearn.com/discuss/489143/?ref=app
14th Dec 2017, 8:30 PM
GAWEN STEASY
GAWEN STEASY - avatar