The PHP fmod() function returns the remainder (modulo) of x/y.

				
					<?php
echo(fmod(7, 3);
?>
				
			

Syntax

				
					fmod(x,y)
				
			

Parameters

ParameterDescription
xSpecifies the dividend (required)
ySpecifies the divisor (required)