O'Reilly logo
  • Nakumatt Global thinks this is interesting:

But what if we had wanted $c to be an integer instead? There are various ways in which we could achieve this, one of which is to force the result of $a/$b to be cast to an integer value using the integer cast type (int), like this:

$c = (int) ($a / $b);

This is called explicit casting. Note that in order to ensure that the value of the entire expression is cast to an integer, we place the expression withi...