Menu
Samaritan's Purse

INTDIV

Integer division

SYNTAX

intdiv ( int $dividend , int $divisor ) : int

PARAMETERS

dividend

Number to be divided.

divisor

Number which divides the dividend.

RETURN

The integer quotient of the division of dividend by divisor.

EXAMPLES

1

1

2

-1

3

-1

4

1

PHP