English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
Thisfmod()
The function returns the dividend/The modulus of the divisor. The floating modulus in fmod.
fmod(dividend/ divisor)
Dividend-the number to be divided.
Divisor-This isDivisor.
Thisfmod()
The function returns the divisor/The remainder of the divisor.
<?php $p = 30; $q = 9; $remainder = fmod($p, $q); echo $remainder; ?>
Output Result
3