Answer & Solution
Answer: Option B
Solution:
The
%
operator in PHP is the modulus operator, which returns the remainder of the division of the left operand by the right operand. In this case, 10 % 3
will result in 1
, as 10
divided by 3
equals 3
with a remainder of 1
.