What is the result of the expression 5%35%3 in PHP?
- 1
- 0
- 2
- 3
In PHP, the % operator is used for modulus. In this expression, 5%35 first results in 5, then 5%3 results in 2. So the answer is 2.
Loading...
Related Quiz
- In PHP, a number with a decimal point or an exponential form is considered a float.
- How do I check if a given variable is empty?
- How do I escape data before storing it in the database?
- What is the purpose of the array_reverse() function in PHP?
- You are writing a PHP script and you need to check if a variable contains a numeric value. How would you do this?