02.7: Decrement

We learned earlier how to increment the value of a variable. How do we decrement the value?


https://www.youtube.com/watch?v=ySL2tH16pFM





<?php
# * Decrement operator.

$num = 10;
print "num: $num\n";

$num--;
print "num: $num\n";


$fahr -= 10;


# * Exercise: Make the temperature conversion program run in reverse (highest to lowest)

?>