% (Modulus)
$i = 10%7; Output = 3.
$j = 10%3; Output = 1.
'%' This is an arithmetic operator in php which is named by modulus. This is use for get the modulus values.
Suppose you have coded 10%3. So what will happen here ?? We know 10 will be divided by 3 total three times and remain 1 as modulus value.
$j = 10%3; Output = 1.
'%' This is an arithmetic operator in php which is named by modulus. This is use for get the modulus values.
Suppose you have coded 10%3. So what will happen here ?? We know 10 will be divided by 3 total three times and remain 1 as modulus value.
Comments
Post a Comment