+ 1

Does php have the interger division operator?

14 div 3 = 4. it is usualy called "div" in other languages. the idea is to know just the interger result of a division

13th Jul 2016, 2:03 PM
Mauricio Ferrari
Mauricio Ferrari - avatar
3 Respostas
0
Well to get just the integer u can try this:- (14 - (14%3))/3
5th Aug 2016, 11:15 AM
Sumitabha Banerjee
Sumitabha Banerjee - avatar
0
u can parse the result in integer for example (int)14/3
5th Sep 2016, 3:27 AM
Ayaz Muttaqui
Ayaz Muttaqui - avatar
- 1
nope
23rd Jul 2016, 7:34 PM
chee yang Eng
chee yang Eng - avatar