Answer the question
In order to leave comments, you need to log in
Analogue of the % operator in PHP?
In JavaScript, the operation 4.2 % 2
returns any remainder of the division, which is 0.2 in this example.
In PHP - exclusively integer: 5.5 % 2 //1
How to get a fractional remainder of a division in PHP?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question