The PHP intdiv() function is used for integer division.

				
					<?php
echo intdiv(1, 2);
?>
				
			

Syntax

				
					intdiv(dividend, divisor)
				
			

Parameters

ParameterDescription
dividendSpecifies a number that will be divided (required)
divisorSpecifies the number to divide the dividend by (required)