What exactly does this mean?
$number = ( 3 - 2 + 7 ) % 7;
It is the modulus operator. In the statement $a % $b the result is the remainder when $a is divided by $b
$a % $b
$a
$b