Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
fmod() function in PHP
The fmod() function Returns the modulo of dividend/ divisor. Floating modulo in fmod.
Syntax
fmod(dividend/ divisor)
Parameters
dividend − The number to be divided.
divisor − This is the number that divides.
Return
The fmod() function Returns the remainder of dividend/ divisor.
Example
<?php $p = 30; $q = 9; $remainder = fmod($p,$q); echo $remainder; ?>
Output
3
Advertisements
